Bug 1046101 part.24 Rename NS_TRANSITION_EVENT to eTransitionEventClass r=smaug

This commit is contained in:
Masayuki Nakano 2014-08-04 14:28:55 +09:00
parent 274dc61dc9
commit b0117e442d
4 changed files with 5 additions and 5 deletions

View File

@ -744,7 +744,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
case eTouchEventClass:
return NS_NewDOMTouchEvent(aDOMEvent, aOwner, aPresContext,
aEvent->AsTouchEvent());
case NS_TRANSITION_EVENT:
case eTransitionEventClass:
return NS_NewDOMTransitionEvent(aDOMEvent, aOwner, aPresContext,
aEvent->AsTransitionEvent());
case NS_ANIMATION_EVENT:

View File

@ -883,7 +883,7 @@ NON_IDL_EVENT(MozEdgeUICompleted,
NON_IDL_EVENT(transitionend,
NS_TRANSITION_END,
EventNameType_None,
NS_TRANSITION_EVENT)
eTransitionEventClass)
NON_IDL_EVENT(animationstart,
NS_ANIMATION_START,
EventNameType_None,

View File

@ -57,7 +57,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
eFormEventClass, // InternalFormEvent
eFocusEventClass, // InternalFocusEvent
eClipboardEventClass, // InternalClipboardEvent
NS_TRANSITION_EVENT, // InternalTransitionEvent
eTransitionEventClass, // InternalTransitionEvent
NS_ANIMATION_EVENT, // InternalAnimationEvent
NS_SVGZOOM_EVENT, // InternalSVGZoomEvent
NS_SMIL_TIME_EVENT, // InternalSMILTimeEvent

View File

@ -240,7 +240,7 @@ public:
}
InternalTransitionEvent(bool aIsTrusted, uint32_t aMessage)
: WidgetEvent(aIsTrusted, aMessage, NS_TRANSITION_EVENT)
: WidgetEvent(aIsTrusted, aMessage, eTransitionEventClass)
, elapsedTime(0.0)
{
mFlags.mCancelable = false;
@ -248,7 +248,7 @@ public:
virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
{
MOZ_ASSERT(mClass == NS_TRANSITION_EVENT,
MOZ_ASSERT(mClass == eTransitionEventClass,
"Duplicate() must be overridden by sub class");
InternalTransitionEvent* result =
new InternalTransitionEvent(false, message);