Bug 1202320 - Fall back to platform APZ enabled in PresShell. r=kats
authorTing-Yu Lin <tlin@mozilla.com>
Tue, 08 Sep 2015 03:30:00 +0800
changeset 294087 022245b323cf56ef396e11fc2db0c6e8b3c13012
parent 294086 c9a6d9c234181121b667aea4087680fdbd254ba8
child 294088 311f2747762968fb20e86658f1ea0d0f0a829808
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1202320
milestone43.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 1202320 - Fall back to platform APZ enabled in PresShell. r=kats If root view or widget cannot be found, use platform value of AsyncPanZoomEnabled.
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -5315,17 +5315,17 @@ bool PresShell::AsyncPanZoomEnabled()
 {
   NS_ASSERTION(mViewManager, "Should have view manager");
   nsView* rootView = mViewManager->GetRootView();
   if (rootView) {
     if (nsIWidget* widget = rootView->GetWidget()) {
       return widget->AsyncPanZoomEnabled();
     }
   }
-  return false;
+  return gfxPlatform::AsyncPanZoomEnabled();
 }
 
 void PresShell::SetIgnoreViewportScrolling(bool aIgnore)
 {
   if (IgnoringViewportScrolling() == aIgnore) {
     return;
   }
   RenderingState state(this);