Bug 1299197 Part1: Refine WidgetPointerHelper. r=smaug
authorStone Shih <sshih@mozilla.com>
Sun, 20 Nov 2016 09:36:39 +0800
changeset 324783 fd2c8004db8a4471ff9d5c8c81839f1e6fe9710c
parent 324782 a3eb899eaa85d8fdaa20423978e84d4032e8fe35
child 324784 eece9df96e36917aa96a82d75e85379aac4cb932
push id31017
push userkwierso@gmail.com
push dateThu, 01 Dec 2016 00:12:25 +0000
treeherdermozilla-central@27449c736a04 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1299197
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 1299197 Part1: Refine WidgetPointerHelper. r=smaug
widget/MouseEvents.h
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -38,31 +38,37 @@ namespace dom {
 
 /******************************************************************************
  * mozilla::WidgetPointerHelper
  ******************************************************************************/
 
 class WidgetPointerHelper
 {
 public:
-  bool convertToPointer;
   uint32_t pointerId;
   uint32_t tiltX;
   uint32_t tiltY;
+  bool convertToPointer;
   bool retargetedByPointerCapture;
 
-  WidgetPointerHelper() : convertToPointer(true), pointerId(0), tiltX(0), tiltY(0),
-                          retargetedByPointerCapture(false) {}
+  WidgetPointerHelper()
+    : pointerId(0)
+    , tiltX(0)
+    , tiltY(0)
+    , convertToPointer(true)
+    , retargetedByPointerCapture(false)
+  {
+  }
 
   void AssignPointerHelperData(const WidgetPointerHelper& aEvent)
   {
-    convertToPointer = aEvent.convertToPointer;
     pointerId = aEvent.pointerId;
     tiltX = aEvent.tiltX;
     tiltY = aEvent.tiltY;
+    convertToPointer = aEvent.convertToPointer;
     retargetedByPointerCapture = aEvent.retargetedByPointerCapture;
   }
 };
 
 /******************************************************************************
  * mozilla::WidgetMouseEventBase
  ******************************************************************************/