Bug 1046101 part.24 Rename NS_TRANSITION_EVENT to eTransitionEventClass r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 04 Aug 2014 14:28:55 +0900
changeset 197555 8afadb6c396c7b2ebfaf0d88dfb66c5a4e0d3ca8
parent 197554 b55f3c2894ff3e1fb18bed76900425f02a020826
child 197556 6f548e273185b046230600f1f227abaea75d2908
push id47161
push usermasayuki@d-toybox.com
push dateMon, 04 Aug 2014 05:29:14 +0000
treeherdermozilla-inbound@c0cfff4ee625 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1046101
milestone34.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 1046101 part.24 Rename NS_TRANSITION_EVENT to eTransitionEventClass 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
@@ -739,17 +739,17 @@ EventDispatcher::CreateEvent(EventTarget
       return NS_NewDOMSimpleGestureEvent(aDOMEvent, aOwner, aPresContext,
                                          aEvent->AsSimpleGestureEvent());
     case ePointerEventClass:
       return NS_NewDOMPointerEvent(aDOMEvent, aOwner, aPresContext,
                                    aEvent->AsPointerEvent());
     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:
       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
@@ -878,17 +878,17 @@ NON_IDL_EVENT(MozEdgeUICanceled,
 NON_IDL_EVENT(MozEdgeUICompleted,
               NS_SIMPLE_GESTURE_EDGE_COMPLETED,
               EventNameType_None,
               eSimpleGestureEventClass)
 
 NON_IDL_EVENT(transitionend,
               NS_TRANSITION_END,
               EventNameType_None,
-              NS_TRANSITION_EVENT)
+              eTransitionEventClass)
 NON_IDL_EVENT(animationstart,
               NS_ANIMATION_START,
               EventNameType_None,
               NS_ANIMATION_EVENT)
 NON_IDL_EVENT(animationend,
               NS_ANIMATION_END,
               EventNameType_None,
               NS_ANIMATION_EVENT)
--- a/widget/BasicEvents.h
+++ b/widget/BasicEvents.h
@@ -52,17 +52,17 @@ enum EventClassID MOZ_ENUM_TYPE(EventCla
   eTouchEventClass,                  // WidgetTouchEvent
 
   // ContentEvents.h
   eScrollPortEventClass,             // InternalScrollPortEvent
   eScrollAreaEventClass,             // InternalScrollAreaEvent
   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
 
   // MiscEvents.h
   NS_COMMAND_EVENT,                  // WidgetCommandEvent
   NS_CONTENT_COMMAND_EVENT,          // WidgetContentCommandEvent
   NS_PLUGIN_EVENT,                   // WidgetPluginEvent
--- a/widget/ContentEvents.h
+++ b/widget/ContentEvents.h
@@ -235,25 +235,25 @@ class InternalTransitionEvent : public W
 {
 public:
   virtual InternalTransitionEvent* AsTransitionEvent() MOZ_OVERRIDE
   {
     return this;
   }
 
   InternalTransitionEvent(bool aIsTrusted, uint32_t aMessage)
-    : WidgetEvent(aIsTrusted, aMessage, NS_TRANSITION_EVENT)
+    : WidgetEvent(aIsTrusted, aMessage, eTransitionEventClass)
     , elapsedTime(0.0)
   {
     mFlags.mCancelable = false;
   }
 
   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);
     result->AssignTransitionEventData(*this, true);
     result->mFlags = mFlags;
     return result;
   }