Bug 1184200 - Update a check for APZ enabled. r=dvander
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 15 Jul 2015 17:13:22 -0400
changeset 253104 d9c0fa509aa08a9319d67c005bf0cbd3354dd067
parent 253103 47235d46727da52da2158adc2f5a2a3e66b46a45
child 253105 f318375860fb474c72253ad802cf81860cca38ea
push id29061
push userryanvm@gmail.com
push dateThu, 16 Jul 2015 18:53:45 +0000
treeherdermozilla-central@a0f4a688433d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1184200
milestone42.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 1184200 - Update a check for APZ enabled. r=dvander
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -819,17 +819,17 @@ nsLayoutUtils::UsesAsyncScrolling(nsIFra
   return AsyncPanZoomEnabled(aFrame);
 }
 
 bool
 nsLayoutUtils::AsyncPanZoomEnabled(nsIFrame* aFrame)
 {
   // We use this as a shortcut, since if the compositor will never use APZ,
   // no widget will either.
-  if (!gfxPrefs::AsyncPanZoomEnabledDoNotUseDirectly()) {
+  if (!gfxPlatform::AsyncPanZoomEnabled()) {
     return false;
   }
 
   nsIFrame *frame = nsLayoutUtils::GetDisplayRootFrame(aFrame);
   nsIWidget* widget = frame->GetNearestWidget();
   if (!widget) {
     return false;
   }