Bug 1430797 - Allow webrender on eWindowType_child, so that it is used on OS X. r=nical
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 16 Jan 2018 14:28:20 -0500
changeset 453804 fe6f236e1fb51c18210ed992f53c2246669504b5
parent 453803 195e88aab631329b58a8e6a8d0e7cf26aba2dafb
child 453805 8dee5d879ef151920948af9cf56a4845957f2081
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1430797
milestone59.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 1430797 - Allow webrender on eWindowType_child, so that it is used on OS X. r=nical MozReview-Commit-ID: Gir5QWoal8d
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -904,17 +904,19 @@ nsBaseWidget::UseAPZ()
            WindowType() == eWindowType_child ||
            (WindowType() == eWindowType_popup && HasRemoteContent() &&
             gfxPrefs::APZPopupsEnabled())));
 }
 
 bool
 nsBaseWidget::AllowWebRenderForThisWindow()
 {
-  return WindowType() == eWindowType_toplevel || HasRemoteContent();
+  return WindowType() == eWindowType_toplevel ||
+         WindowType() == eWindowType_child ||
+         (WindowType() == eWindowType_popup && HasRemoteContent());
 }
 
 void nsBaseWidget::CreateCompositor()
 {
   LayoutDeviceIntRect rect = GetBounds();
   CreateCompositor(rect.Width(), rect.Height());
 }