Bug 1430797 - Allow webrender on eWindowType_child, so that it is used on OS X. r?mstange
MozReview-Commit-ID: EyAHizaJvjP
--- 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());
}