Bug 1046101 part.25 Rename NS_ANIMATION_EVENT to eAnimationEventClass r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 04 Aug 2014 14:28:55 +0900
changeset 197665 6f548e273185b046230600f1f227abaea75d2908
parent 197664 8afadb6c396c7b2ebfaf0d88dfb66c5a4e0d3ca8
child 197666 fca0bb35087e09322ae2ffb8c8de9645e7fdd762
push id8037
push userryanvm@gmail.com
push dateMon, 04 Aug 2014 20:24:04 +0000
treeherderfx-team@7f81be7db528 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1046101
milestone34.0a1
Bug 1046101 part.25 Rename NS_ANIMATION_EVENT to eAnimationEventClass r=smaug
dom/events/EventDispatcher.cpp
dom/events/EventNameList.h
widget/BasicEvents.h
widget/ContentEvents.h
--- a/dom/events/EventDispatcher.cpp
+++ b/dom/events/EventDispatcher.cpp
@@ -742,17 +742,17 @@ EventDispatcher::CreateEvent(EventTarget
       return NS_NewDOMPointerEvent(aDOMEvent, aOwner, aPresContext,
                                    aEvent->AsPointerEvent());
     case eTouchEventClass:
       return NS_NewDOMTouchEvent(aDOMEvent, aOwner, aPresContext,
                                  aEvent->AsTouchEvent());
     case eTransitionEventClass:
       return NS_NewDOMTransitionEvent(aDOMEvent, aOwner, aPresContext,
                                       aEvent->AsTransitionEvent());
-    case NS_ANIMATION_EVENT:
+    case eAnimationEventClass:
       return NS_NewDOMAnimationEvent(aDOMEvent, aOwner, aPresContext,
                                      aEvent->AsAnimationEvent());
     default:
       // For all other types of events, create a vanilla event object.
       return NS_NewDOMEvent(aDOMEvent, aOwner, aPresContext, aEvent);
     }
   }
 
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -882,25 +882,25 @@ NON_IDL_EVENT(MozEdgeUICompleted,
 
 NON_IDL_EVENT(transitionend,
               NS_TRANSITION_END,
               EventNameType_None,
               eTransitionEventClass)
 NON_IDL_EVENT(animationstart,
               NS_ANIMATION_START,
               EventNameType_None,
-              NS_ANIMATION_EVENT)
+              eAnimationEventClass)
 NON_IDL_EVENT(animationend,
               NS_ANIMATION_END,
               EventNameType_None,
-              NS_ANIMATION_EVENT)
+              eAnimationEventClass)
 NON_IDL_EVENT(animationiteration,
               NS_ANIMATION_ITERATION,
               EventNameType_None,
-              NS_ANIMATION_EVENT)
+              eAnimationEventClass)
 
 NON_IDL_EVENT(audioprocess,
               NS_AUDIO_PROCESS,
               EventNameType_None,
               NS_EVENT)
 
 NON_IDL_EVENT(complete,
               NS_AUDIO_COMPLETE,
--- a/widget/BasicEvents.h
+++ b/widget/BasicEvents.h
@@ -53,17 +53,17 @@ enum EventClassID MOZ_ENUM_TYPE(EventCla
 
   // ContentEvents.h
   eScrollPortEventClass,             // InternalScrollPortEvent
   eScrollAreaEventClass,             // InternalScrollAreaEvent
   eFormEventClass,                   // InternalFormEvent
   eFocusEventClass,                  // InternalFocusEvent
   eClipboardEventClass,              // InternalClipboardEvent
   eTransitionEventClass,             // InternalTransitionEvent
-  NS_ANIMATION_EVENT,                // InternalAnimationEvent
+  eAnimationEventClass,              // InternalAnimationEvent
   NS_SVGZOOM_EVENT,                  // InternalSVGZoomEvent
   NS_SMIL_TIME_EVENT,                // InternalSMILTimeEvent
 
   // MiscEvents.h
   NS_COMMAND_EVENT,                  // WidgetCommandEvent
   NS_CONTENT_COMMAND_EVENT,          // WidgetContentCommandEvent
   NS_PLUGIN_EVENT,                   // WidgetPluginEvent
 
--- a/widget/ContentEvents.h
+++ b/widget/ContentEvents.h
@@ -280,25 +280,25 @@ class InternalAnimationEvent : public Wi
 {
 public:
   virtual InternalAnimationEvent* AsAnimationEvent() MOZ_OVERRIDE
   {
     return this;
   }
 
   InternalAnimationEvent(bool aIsTrusted, uint32_t aMessage)
-    : WidgetEvent(aIsTrusted, aMessage, NS_ANIMATION_EVENT)
+    : WidgetEvent(aIsTrusted, aMessage, eAnimationEventClass)
     , elapsedTime(0.0)
   {
     mFlags.mCancelable = false;
   }
 
   virtual WidgetEvent* Duplicate() const MOZ_OVERRIDE
   {
-    MOZ_ASSERT(mClass == NS_ANIMATION_EVENT,
+    MOZ_ASSERT(mClass == eAnimationEventClass,
                "Duplicate() must be overridden by sub class");
     InternalAnimationEvent* result = new InternalAnimationEvent(false, message);
     result->AssignAnimationEventData(*this, true);
     result->mFlags = mFlags;
     return result;
   }
 
   nsString animationName;