зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.171 Rename NS_ANIMATION_START to eAnimationStart r=smaug
This commit is contained in:
Родитель
4446abcd0f
Коммит
d715374512
|
@ -909,7 +909,7 @@ NON_IDL_EVENT(transitionend,
|
|||
EventNameType_None,
|
||||
eTransitionEventClass)
|
||||
NON_IDL_EVENT(animationstart,
|
||||
NS_ANIMATION_START,
|
||||
eAnimationStart,
|
||||
EventNameType_None,
|
||||
eAnimationEventClass)
|
||||
NON_IDL_EVENT(animationend,
|
||||
|
|
|
@ -239,7 +239,7 @@ CSSAnimation::QueueEvents()
|
|||
EventMessage message;
|
||||
|
||||
if (!wasActive && isActive) {
|
||||
message = NS_ANIMATION_START;
|
||||
message = eAnimationStart;
|
||||
} else if (wasActive && !isActive) {
|
||||
message = NS_ANIMATION_END;
|
||||
} else if (wasActive && isActive && !isSameIteration) {
|
||||
|
@ -251,7 +251,7 @@ CSSAnimation::QueueEvents()
|
|||
std::min(StickyTimeDuration(mEffect->InitialAdvance()),
|
||||
computedTiming.mActiveDuration);
|
||||
manager->QueueEvent(
|
||||
AnimationEventInfo(owningElement, mAnimationName, NS_ANIMATION_START,
|
||||
AnimationEventInfo(owningElement, mAnimationName, eAnimationStart,
|
||||
elapsedTime, owningPseudoType));
|
||||
// Then have the shared code below append an 'animationend':
|
||||
message = NS_ANIMATION_END;
|
||||
|
@ -261,7 +261,7 @@ CSSAnimation::QueueEvents()
|
|||
|
||||
StickyTimeDuration elapsedTime;
|
||||
|
||||
if (message == NS_ANIMATION_START ||
|
||||
if (message == eAnimationStart ||
|
||||
message == NS_ANIMATION_ITERATION) {
|
||||
TimeDuration iterationStart = mEffect->Timing().mIterationDuration *
|
||||
computedTiming.mCurrentIteration;
|
||||
|
|
|
@ -327,7 +327,7 @@ NS_EVENT_MESSAGE(NS_TRANSITION_EVENT_START, 4200)
|
|||
NS_EVENT_MESSAGE(NS_TRANSITION_END, NS_TRANSITION_EVENT_START)
|
||||
|
||||
NS_EVENT_MESSAGE(eAnimationEventFirst, 4250)
|
||||
NS_EVENT_MESSAGE(NS_ANIMATION_START, eAnimationEventFirst)
|
||||
NS_EVENT_MESSAGE(eAnimationStart, eAnimationEventFirst)
|
||||
NS_EVENT_MESSAGE(NS_ANIMATION_END, eAnimationEventFirst + 1)
|
||||
NS_EVENT_MESSAGE(NS_ANIMATION_ITERATION, eAnimationEventFirst + 2)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче