mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
9836323890
Add a virtual method we can use to determine when an animation is having its sequence number set by some other mechanism than the general logic defined for animations. This allows CSS animations and transitions to re-use the sequence number for their own purposes. Typically what will happen is something like this: 1. A CSSAnimation is created corresponding to an item in the animation-name property. At this point CSSAnimation::IsUsingCustomCompositeOrder() will return true and nsAnimationManager will set the sequence number based on the position of the animation in animation-name. 2. If at a later point the animation is removed from the animation-name but kept alive by script, CSSAnimation::CancelFromStyle will be called which will clear the custom sequence number (i.e. set it to kUnsequenced) and also update the CSSAnimation's state such as CSSAnimation::IsUsingCustomCompositeOrder() returns false. 3. Then, then the CSSAnimation next transitions out of the idle state it will have its sequence number set just like any other Animation and be ordered like any other Animation (since we can no longer use animation-name to determine its composite order). This behavior is added in subsequent patches in this series (and likewise for CSS transitions too). --HG-- extra : commitid : B8nPFXzQMfF extra : rebase_source : 42439fb1dd32a789e270dc0c51af2c660f4593eb |
||
---|---|---|
.. | ||
test | ||
Animation.cpp | ||
Animation.h | ||
AnimationEffectReadOnly.cpp | ||
AnimationEffectReadOnly.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
AnimationUtils.h | ||
DocumentTimeline.cpp | ||
DocumentTimeline.h | ||
KeyframeEffect.cpp | ||
KeyframeEffect.h | ||
moz.build | ||
PendingAnimationTracker.cpp | ||
PendingAnimationTracker.h |