Bug 968721 Remove constructor of WidgetPointEvent which takes a lot of arguments for initializing its members r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Tue, 11 Feb 2014 14:35:25 +0900
changeset 185222 978094768f3ed5ac66164b977f2ac0fb6e79e65a
parent 185221 cfcebde86f40b458de8113a4fd083078af0e843f
child 185223 7b911af320e5c63018ac4d2aad25eee71a307505
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs968721
milestone30.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 968721 Remove constructor of WidgetPointEvent which takes a lot of arguments for initializing its members r=smaug
widget/MouseEvents.h
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -545,30 +545,16 @@ public:
     , height(0)
     , tiltX(0)
     , tiltY(0)
     , isPrimary(true)
   {
     eventStructType = NS_POINTER_EVENT;
   }
 
-  WidgetPointerEvent(bool aIsTrusted, uint32_t aMsg, nsIWidget* w,
-                     uint32_t aPointerId,
-                     uint32_t aWidth, uint32_t aHeight,
-                     uint32_t aTiltX, uint32_t aTiltY, bool aIsPrimary)
-    : WidgetMouseEvent(aIsTrusted, aMsg, w, NS_POINTER_EVENT, eReal)
-    , pointerId(aPointerId)
-    , width(aWidth)
-    , height(aHeight)
-    , tiltX(aTiltX)
-    , tiltY(aTiltY)
-    , isPrimary(aIsPrimary)
-  {
-  }
-
   virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
   {
     MOZ_ASSERT(eventStructType == NS_POINTER_EVENT,
                "Duplicate() must be overridden by sub class");
     // Not copying widget, it is a weak reference.
     WidgetPointerEvent* result =
       new WidgetPointerEvent(false, message, nullptr);
     result->AssignPointerEventData(*this, true);