зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1739930 - Disable CompositorSession in popup parent widget r=gfx-reviewers,bradwerth
From nsDocumentViewer::ShouldAttachToTopLevel(), content rendering of popup is always done by child widget. Differential Revision: https://phabricator.services.mozilla.com/D130714
This commit is contained in:
Родитель
c11619252a
Коммит
5358043005
|
@ -7361,6 +7361,13 @@ bool nsWindow::ShouldUseOffMainThreadCompositing() {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Content rendering of popup is always done by child window.
|
||||
// See nsDocumentViewer::ShouldAttachToTopLevel().
|
||||
if (mWindowType == eWindowType_popup && !mIsChildWindow) {
|
||||
MOZ_ASSERT(!mParent);
|
||||
return false;
|
||||
}
|
||||
|
||||
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче