Bug 1046101 part.27 Rename NS_SMIL_TIME_EVENT to eSMILTimeEventClass r=smaug

This commit is contained in:
Masayuki Nakano 2014-08-04 14:28:56 +09:00
parent 1deffd0a75
commit 165587969b
4 changed files with 8 additions and 8 deletions

View File

@ -729,7 +729,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
case eSVGZoomEventClass:
return NS_NewDOMSVGZoomEvent(aDOMEvent, aOwner, aPresContext,
aEvent->AsSVGZoomEvent());
case NS_SMIL_TIME_EVENT:
case eSMILTimeEventClass:
return NS_NewDOMTimeEvent(aDOMEvent, aOwner, aPresContext,
aEvent->AsSMILTimeEvent());
case NS_COMMAND_EVENT:

View File

@ -761,7 +761,7 @@ NON_IDL_EVENT(begin,
NON_IDL_EVENT(beginEvent,
NS_SMIL_BEGIN,
EventNameType_None,
NS_SMIL_TIME_EVENT)
eSMILTimeEventClass)
// Only map the ID to the real event name when ID_TO_EVENT is defined.
#ifndef ID_TO_EVENT
NON_IDL_EVENT(end,
@ -772,7 +772,7 @@ NON_IDL_EVENT(end,
NON_IDL_EVENT(endEvent,
NS_SMIL_END,
EventNameType_None,
NS_SMIL_TIME_EVENT)
eSMILTimeEventClass)
// Only map the ID to the real event name when ID_TO_EVENT is defined.
#ifndef ID_TO_EVENT
NON_IDL_EVENT(repeat,
@ -783,7 +783,7 @@ NON_IDL_EVENT(repeat,
NON_IDL_EVENT(repeatEvent,
NS_SMIL_REPEAT,
EventNameType_None,
NS_SMIL_TIME_EVENT)
eSMILTimeEventClass)
NON_IDL_EVENT(MozAfterPaint,
NS_AFTERPAINT,

View File

@ -60,7 +60,7 @@ enum EventClassID MOZ_ENUM_TYPE(EventClassIDType)
eTransitionEventClass, // InternalTransitionEvent
eAnimationEventClass, // InternalAnimationEvent
eSVGZoomEventClass, // InternalSVGZoomEvent
NS_SMIL_TIME_EVENT, // InternalSMILTimeEvent
eSMILTimeEventClass, // InternalSMILTimeEvent
// MiscEvents.h
NS_COMMAND_EVENT, // WidgetCommandEvent

View File

@ -361,8 +361,8 @@ public:
return this;
}
InternalSMILTimeEvent(bool aIsTrusted, uint32_t aMessage) :
InternalUIEvent(aIsTrusted, aMessage, NS_SMIL_TIME_EVENT)
InternalSMILTimeEvent(bool aIsTrusted, uint32_t aMessage)
: InternalUIEvent(aIsTrusted, aMessage, eSMILTimeEventClass)
{
mFlags.mBubbles = false;
mFlags.mCancelable = false;
@ -370,7 +370,7 @@ public:
virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
{
MOZ_ASSERT(mClass == NS_SMIL_TIME_EVENT,
MOZ_ASSERT(mClass == eSMILTimeEventClass,
"Duplicate() must be overridden by sub class");
InternalSMILTimeEvent* result = new InternalSMILTimeEvent(false, message);
result->AssignSMILTimeEventData(*this, true);