Backed out 2 changesets (bug 1356317) for frequent Win7 debug "Assertion failure: !mCompositeDC"

Backed out changeset d0cdeb6ffaeb (bug 1356317)
Backed out changeset 698042ea9555 (bug 1356317)

MozReview-Commit-ID: GUNfDlWpg4p
This commit is contained in:
Phil Ringnalda 2017-06-29 22:42:12 -07:00
Родитель 34fef0d422
Коммит 894f8f9c6f
3 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -421,9 +421,6 @@ class ViewPopup extends BasePopup {
// be swapped with the browser in the real panel when it's ready.
let panel = document.createElement("panel");
panel.setAttribute("type", "arrow");
if (extension.remote) {
panel.setAttribute("remote", "true");
}
document.getElementById("mainPopupSet").appendChild(panel);
super(extension, panel, popupURL, browserStyle, fixedWidth, blockParser);

Просмотреть файл

@ -7170,6 +7170,19 @@ nsWindow::IsPopup()
return mWindowType == eWindowType_popup;
}
bool
nsWindow::ShouldUseOffMainThreadCompositing()
{
// We don't currently support using an accelerated layer manager with
// transparent windows so don't even try. I'm also not sure if we even
// want to support this case. See bug 593471
if (!(HasRemoteContent() && gIsPopupCompositingEnabled) && mTransparencyMode == eTransparencyTransparent) {
return false;
}
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
}
void
nsWindow::WindowUsesOMTC()
{

Просмотреть файл

@ -301,6 +301,7 @@ public:
bool const DestroyCalled() { return mDestroyCalled; }
bool IsPopup();
virtual bool ShouldUseOffMainThreadCompositing() override;
const IMEContext& DefaultIMC() const { return mDefaultIMC; }