Bug 1406533 - Don't force in process rendering for transparent (popup) windows, r=lsalzman
authorMartin Stransky <stransky@redhat.com>
Tue, 24 Jul 2018 16:15:43 +0200
changeset 485824 89b8c49481b207f0496212c2aaf1a86b26f5be3c
parent 485823 0cfb908b2ccffb69ad600b44bb4a4152eac3b5e4
child 485825 4b73b8c7240859ef2587a99cc1f1523c58bbddb2
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsalzman
bugs1406533
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1406533 - Don't force in process rendering for transparent (popup) windows, r=lsalzman MozReview-Commit-ID: 2TS1CXsp44A
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6667,22 +6667,16 @@ nsWindow::GetLayerManager(PLayerTransact
                           LayerManagerPersistence aPersistence)
 {
     if (mIsDestroyed) {
       // Prevent external code from triggering the re-creation of the LayerManager/Compositor
       // during shutdown. Just return what we currently have, which is most likely null.
       return mLayerManager;
     }
 
-    if (!mLayerManager && !IsComposited() &&
-        eTransparencyTransparent == GetTransparencyMode())
-    {
-        mLayerManager = CreateBasicLayerManager();
-    }
-
     return nsBaseWidget::GetLayerManager(aShadowManager, aBackendHint, aPersistence);
 }
 
 void
 nsWindow::SetCompositorWidgetDelegate(CompositorWidgetDelegate* delegate)
 {
     if (delegate) {
         mCompositorWidgetDelegate = delegate->AsPlatformSpecificDelegate();