Bug 1259667 - part1: reorder the padding of WidgetSimpleGestureEvent.r=masayuki
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>
Tue, 10 May 2016 04:16:54 +0900
changeset 296744 ae4894a0c9bb534cbd8c2a29589663d5b482eb8c
parent 296743 51922d1ebfa13a4932ac4c6dfd6010a39d145812
child 296745 3a8436e77403e3fd4a0d5cbd4de310ecb56918d1
push id30245
push usercbook@mozilla.com
push dateTue, 10 May 2016 10:06:29 +0000
treeherdermozilla-central@1579b9e2e50f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1259667
milestone49.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 1259667 - part1: reorder the padding of WidgetSimpleGestureEvent.r=masayuki MozReview-Commit-ID: C9x0cR02zsC
widget/TouchEvents.h
--- a/widget/TouchEvents.h
+++ b/widget/TouchEvents.h
@@ -95,28 +95,28 @@ public:
   }
 
   WidgetSimpleGestureEvent(bool aIsTrusted, EventMessage aMessage,
                            nsIWidget* aWidget)
     : WidgetMouseEventBase(aIsTrusted, aMessage, aWidget,
                            eSimpleGestureEventClass)
     , allowedDirections(0)
     , direction(0)
+    , clickCount(0)
     , delta(0.0)
-    , clickCount(0)
   {
   }
 
   WidgetSimpleGestureEvent(const WidgetSimpleGestureEvent& aOther)
     : WidgetMouseEventBase(aOther.IsTrusted(), aOther.mMessage,
                            aOther.mWidget, eSimpleGestureEventClass)
     , allowedDirections(aOther.allowedDirections)
     , direction(aOther.direction)
+    , clickCount(0)
     , delta(aOther.delta)
-    , clickCount(0)
   {
   }
 
   virtual WidgetEvent* Duplicate() const override
   {
     MOZ_ASSERT(mClass == eSimpleGestureEventClass,
                "Duplicate() must be overridden by sub class");
     // Not copying widget, it is a weak reference.
@@ -126,20 +126,20 @@ public:
     result->mFlags = mFlags;
     return result;
   }
 
   // See nsIDOMSimpleGestureEvent for values
   uint32_t allowedDirections;
   // See nsIDOMSimpleGestureEvent for values
   uint32_t direction;
+  // The number of taps for tap events
+  uint32_t clickCount;
   // Delta for magnify and rotate events
   double delta;
-  // The number of taps for tap events
-  uint32_t clickCount;
 
   // XXX Not tested by test_assign_event_data.html
   void AssignSimpleGestureEventData(const WidgetSimpleGestureEvent& aEvent,
                                     bool aCopyTargets)
   {
     AssignMouseEventBaseData(aEvent, aCopyTargets);
 
     // allowedDirections isn't copied