Bug 1328832 - Followup bustage fix for macOS.
authorCameron McCormack <cam@mcc.id.au>
Fri, 06 Jan 2017 15:29:47 +0800
changeset 328194 823b110abf89278ba0b7bf40bda2af19ecf2b628
parent 328193 cfc41cf8b0b316f7884c997d309fa177b28cb468
child 328195 44319b48939468ccee22cc03a4cae5e506c2847d
push id85396
push usercmccormack@mozilla.com
push dateFri, 06 Jan 2017 07:29:54 +0000
treeherdermozilla-inbound@823b110abf89 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1328832
milestone53.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 1328832 - Followup bustage fix for macOS. MozReview-Commit-ID: 66Gbfyp9Ale
widget/cocoa/SwipeTracker.mm
--- a/widget/cocoa/SwipeTracker.mm
+++ b/widget/cocoa/SwipeTracker.mm
@@ -2,16 +2,17 @@
 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "SwipeTracker.h"
 
 #include "InputData.h"
+#include "mozilla/FlushType.h"
 #include "mozilla/TimeStamp.h"
 #include "mozilla/TouchEvents.h"
 #include "nsAlgorithm.h"
 #include "nsChildView.h"
 #include "UnitTransforms.h"
 
 // These values were tweaked to make the physics feel similar to the native swipe.
 static const double kSpringForce = 250.0;
@@ -147,17 +148,17 @@ SwipeTracker::StartAnimating(double aTar
 
   mLastAnimationFrameTime = TimeStamp::Now();
 
   // Add ourselves as a refresh driver observer. The refresh driver
   // will call WillRefresh for each animation frame until we
   // unregister ourselves.
   MOZ_ASSERT(!mRegisteredWithRefreshDriver);
   if (mRefreshDriver) {
-    mRefreshDriver->AddRefreshObserver(this, Flush_Style);
+    mRefreshDriver->AddRefreshObserver(this, FlushType::Style);
     mRegisteredWithRefreshDriver = true;
   }
 }
 
 void
 SwipeTracker::WillRefresh(mozilla::TimeStamp aTime)
 {
   TimeStamp now = TimeStamp::Now();