Bug 1430797 - Follow-up to address review comment. r=mstange
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 17 Jan 2018 08:59:38 -0500
changeset 399688 f05239cea76cbc2634a39f5e6879989d09ea29a4
parent 399687 583fd2e84a45f3bcdc1bc1c2a75b80b2a95c66ff
child 399689 1f3711534710096532095eb6438c362fad67a20a
push id33272
push usertoros@mozilla.com
push dateWed, 17 Jan 2018 21:48:44 +0000
treeherdermozilla-central@b7a651281314 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
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 - Follow-up to address review comment. r=mstange MozReview-Commit-ID: 4DkzPSlDLwN
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -906,16 +906,17 @@ nsBaseWidget::UseAPZ()
             gfxPrefs::APZPopupsEnabled())));
 }
 
 bool
 nsBaseWidget::AllowWebRenderForThisWindow()
 {
   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());
 }