Bug 895274 part.196 Rename NS_SMIL_BEGIN to eSMILBeginEvent r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 11 Sep 2015 21:21:27 +0900
changeset 294612 1ee79c909e1f3c3b49a1ad2345e75ce90adee31c
parent 294611 07176b6eeedf1c0b4304a75795c0f1747b051365
child 294613 108cbd52aa7ecccf89aaaa23ec55a011fa7f9832
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs895274
milestone43.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 895274 part.196 Rename NS_SMIL_BEGIN to eSMILBeginEvent r=smaug
dom/events/EventNameList.h
dom/smil/nsSMILTimedElement.cpp
widget/EventMessageList.h
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -769,22 +769,22 @@ NON_IDL_EVENT(SVGZoom,
 NON_IDL_EVENT(zoom,
               eSVGZoom,
               EventNameType_SVGSVG,
               eBasicEventClass)
 #endif
 // Only map the ID to the real event name when MESSAGE_TO_EVENT is defined.
 #ifndef MESSAGE_TO_EVENT
 NON_IDL_EVENT(begin,
-              NS_SMIL_BEGIN,
+              eSMILBeginEvent,
               EventNameType_SMIL,
               eBasicEventClass)
 #endif
 NON_IDL_EVENT(beginEvent,
-              NS_SMIL_BEGIN,
+              eSMILBeginEvent,
               EventNameType_None,
               eSMILTimeEventClass)
 // Only map the ID to the real event name when MESSAGE_TO_EVENT is defined.
 #ifndef MESSAGE_TO_EVENT
 NON_IDL_EVENT(end,
               NS_SMIL_END,
               EventNameType_SMIL,
               eBasicEventClass)
--- a/dom/smil/nsSMILTimedElement.cpp
+++ b/dom/smil/nsSMILTimedElement.cpp
@@ -638,17 +638,17 @@ nsSMILTimedElement::DoSampleAt(nsSMILTim
       {
         if (mCurrentInterval->Begin()->Time() <= sampleTime) {
           mElementState = STATE_ACTIVE;
           mCurrentInterval->FixBegin();
           if (mClient) {
             mClient->Activate(mCurrentInterval->Begin()->Time().GetMillis());
           }
           if (mSeekState == SEEK_NOT_SEEKING) {
-            FireTimeEventAsync(NS_SMIL_BEGIN, 0);
+            FireTimeEventAsync(eSMILBeginEvent, 0);
           }
           if (HasPlayed()) {
             Reset(); // Apply restart behaviour
             // The call to Reset() may mean that the end point of our current
             // interval should be changed and so we should update the interval
             // now. However, calling UpdateCurrentInterval could result in the
             // interval getting deleted (perhaps through some web of syncbase
             // dependencies) therefore we make updating the interval the last
@@ -1520,17 +1520,17 @@ nsSMILTimedElement::DoPostSeek()
     if (mElementState != STATE_ACTIVE) {
       FireTimeEventAsync(NS_SMIL_END, 0);
     }
     break;
 
   case SEEK_FORWARD_FROM_INACTIVE:
   case SEEK_BACKWARD_FROM_INACTIVE:
     if (mElementState == STATE_ACTIVE) {
-      FireTimeEventAsync(NS_SMIL_BEGIN, 0);
+      FireTimeEventAsync(eSMILBeginEvent, 0);
     }
     break;
 
   case SEEK_NOT_SEEKING:
     /* Do nothing */
     break;
   }
 
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -327,17 +327,17 @@ NS_EVENT_MESSAGE(NS_TRANSITION_EVENT_STA
 NS_EVENT_MESSAGE(NS_TRANSITION_END,     NS_TRANSITION_EVENT_START)
 
 NS_EVENT_MESSAGE(eAnimationEventFirst,  4250)
 NS_EVENT_MESSAGE(eAnimationStart,       eAnimationEventFirst)
 NS_EVENT_MESSAGE(eAnimationEnd,         eAnimationEventFirst + 1)
 NS_EVENT_MESSAGE(eAnimationIteration,   eAnimationEventFirst + 2)
 
 NS_EVENT_MESSAGE(eSMILEventFirst,       4300)
-NS_EVENT_MESSAGE(NS_SMIL_BEGIN,         eSMILEventFirst)
+NS_EVENT_MESSAGE(eSMILBeginEvent,       eSMILEventFirst)
 NS_EVENT_MESSAGE(NS_SMIL_END,           eSMILEventFirst + 1)
 NS_EVENT_MESSAGE(NS_SMIL_REPEAT,        eSMILEventFirst + 2)
 
 NS_EVENT_MESSAGE(NS_WEBAUDIO_EVENT_START, 4350)
 NS_EVENT_MESSAGE(NS_AUDIO_PROCESS,      NS_WEBAUDIO_EVENT_START)
 NS_EVENT_MESSAGE(NS_AUDIO_COMPLETE,     NS_WEBAUDIO_EVENT_START + 1)
 
 // script notification events