зеркало из https://github.com/mozilla/gecko-dev.git
df6a321bc6
According to the spec, when we cancel an animation we should "reset an animation's pending tasks"[1] which has following step: ... 4. Reject animation’s current ready promise with a DOMException named "AbortError". 5. Let animation’s current ready promise be the result of creating a new resolved Promise object. Since we create the ready promise and, if need resolve it when we create it (see Animation::GetReady), this patch simply clear the ready promise when an animation is canceled. [1] https://w3c.github.io/web-animations/#reset-an-animations-pending-tasks MozReview-Commit-ID: JxoqeA5dXCO --HG-- extra : rebase_source : 1c51724f236b3ed464eb6af3c20ccc9aaf5aa3e6 |
||
---|---|---|
.. | ||
test | ||
AnimValuesStyleRule.cpp | ||
AnimValuesStyleRule.h | ||
Animation.cpp | ||
Animation.h | ||
AnimationComparator.h | ||
AnimationEffectReadOnly.cpp | ||
AnimationEffectReadOnly.h | ||
AnimationEffectTiming.cpp | ||
AnimationEffectTiming.h | ||
AnimationEffectTimingReadOnly.cpp | ||
AnimationEffectTimingReadOnly.h | ||
AnimationPerformanceWarning.cpp | ||
AnimationPerformanceWarning.h | ||
AnimationPropertySegment.h | ||
AnimationTarget.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
AnimationUtils.cpp | ||
AnimationUtils.h | ||
CSSPseudoElement.cpp | ||
CSSPseudoElement.h | ||
ComputedTiming.h | ||
ComputedTimingFunction.cpp | ||
ComputedTimingFunction.h | ||
DocumentTimeline.cpp | ||
DocumentTimeline.h | ||
EffectCompositor.cpp | ||
EffectCompositor.h | ||
EffectSet.cpp | ||
EffectSet.h | ||
Keyframe.h | ||
KeyframeEffect.cpp | ||
KeyframeEffect.h | ||
KeyframeEffectParams.cpp | ||
KeyframeEffectParams.h | ||
KeyframeEffectReadOnly.cpp | ||
KeyframeEffectReadOnly.h | ||
KeyframeUtils.cpp | ||
KeyframeUtils.h | ||
PendingAnimationTracker.cpp | ||
PendingAnimationTracker.h | ||
PseudoElementHashEntry.h | ||
TimingParams.cpp | ||
TimingParams.h | ||
moz.build |