Bug 1430797 - Allow webrender on eWindowType_child, so that it is used on OS X. r?mstange draft
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 16 Jan 2018 15:00:44 -0500
changeset 721149 5b574010b101fcdc4dbefc8e7582ecb804285e2c
parent 720975 9be7249e74fd7f6d9163b59d3386ed01038197a0
child 746245 3d01617cec96d432c0829ea8d63fd0c20d936c6f
push id95743
push userkgupta@mozilla.com
push dateTue, 16 Jan 2018 20:01:06 +0000
reviewersmstange
bugs1430797
milestone59.0a1
Bug 1430797 - Allow webrender on eWindowType_child, so that it is used on OS X. r?mstange MozReview-Commit-ID: EyAHizaJvjP
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -904,17 +904,20 @@ 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_dialog ||
+         (WindowType() == eWindowType_popup && HasRemoteContent());
 }
 
 void nsBaseWidget::CreateCompositor()
 {
   LayoutDeviceIntRect rect = GetBounds();
   CreateCompositor(rect.Width(), rect.Height());
 }