Bug 1249915 - Fix missing MOZ_COUNT_CTOR and some misc cleanup. r=karlt

MozReview-Commit-ID: 3nB4awYSXCk
This commit is contained in:
Kartikaya Gupta 2016-02-23 10:17:46 -05:00
parent e178f092f5
commit aab06fcb70

View File

@ -83,7 +83,7 @@ public:
}; };
/****************************************************************************** /******************************************************************************
* mozilla::WidgetTouchEvent * mozilla::WidgetSimpleGestureEvent
******************************************************************************/ ******************************************************************************/
class WidgetSimpleGestureEvent : public WidgetMouseEventBase class WidgetSimpleGestureEvent : public WidgetMouseEventBase
@ -163,19 +163,20 @@ public:
WidgetTouchEvent() WidgetTouchEvent()
{ {
MOZ_COUNT_CTOR(WidgetTouchEvent);
} }
WidgetTouchEvent(const WidgetTouchEvent& aOther) WidgetTouchEvent(const WidgetTouchEvent& aOther)
: WidgetInputEvent(aOther.mFlags.mIsTrusted, aOther.mMessage, aOther.widget, : WidgetInputEvent(aOther.mFlags.mIsTrusted, aOther.mMessage, aOther.widget,
eTouchEventClass) eTouchEventClass)
{ {
MOZ_COUNT_CTOR(WidgetTouchEvent);
modifiers = aOther.modifiers; modifiers = aOther.modifiers;
time = aOther.time; time = aOther.time;
timeStamp = aOther.timeStamp; timeStamp = aOther.timeStamp;
touches.AppendElements(aOther.touches); touches.AppendElements(aOther.touches);
mFlags.mCancelable = mMessage != eTouchCancel; mFlags.mCancelable = mMessage != eTouchCancel;
mFlags.mHandledByAPZ = aOther.mFlags.mHandledByAPZ; mFlags.mHandledByAPZ = aOther.mFlags.mHandledByAPZ;
MOZ_COUNT_CTOR(WidgetTouchEvent);
} }
WidgetTouchEvent(bool aIsTrusted, EventMessage aMessage, nsIWidget* aWidget) WidgetTouchEvent(bool aIsTrusted, EventMessage aMessage, nsIWidget* aWidget)