Bug 1299197 Part1: Refine WidgetPointerHelper. r=smaug
authorStone Shih <sshih@mozilla.com>
Sun, 20 Nov 2016 09:36:39 +0800
changeset 324816 fd2c8004db8a4471ff9d5c8c81839f1e6fe9710c
parent 324815 a3eb899eaa85d8fdaa20423978e84d4032e8fe35
child 324817 eece9df96e36917aa96a82d75e85379aac4cb932
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerssmaug
bugs1299197
milestone53.0a1
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
  ******************************************************************************/