gecko-dev/dom/animation
Mantaroh Yoshinaga df6a321bc6 Bug 1353987 - Clear ready promise when animation is canceled. r=birtles
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
2017-06-12 10:45:48 +09:00
..
test Bug 1368610 - Part 6: Add tests for valid inherit value during animation. r=hiro 2017-06-12 10:17:25 +09:00
AnimValuesStyleRule.cpp
AnimValuesStyleRule.h
Animation.cpp Bug 1353987 - Clear ready promise when animation is canceled. r=birtles 2017-06-12 10:45:48 +09:00
Animation.h
AnimationComparator.h
AnimationEffectReadOnly.cpp
AnimationEffectReadOnly.h
AnimationEffectTiming.cpp
AnimationEffectTiming.h
AnimationEffectTimingReadOnly.cpp
AnimationEffectTimingReadOnly.h
AnimationPerformanceWarning.cpp Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange 2017-06-05 17:01:19 -04:00
AnimationPerformanceWarning.h Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange 2017-06-05 17:01:19 -04:00
AnimationPropertySegment.h
AnimationTarget.h
AnimationTimeline.cpp
AnimationTimeline.h
AnimationUtils.cpp
AnimationUtils.h
CSSPseudoElement.cpp
CSSPseudoElement.h
ComputedTiming.h Bug 1264125 part 10 - Remove unnecessary whitespace and align the colum of variable definition on ComputedTiming.h. r=whitespace-only DONTBUILD 2017-04-27 09:10:44 +09:00
ComputedTimingFunction.cpp
ComputedTimingFunction.h Bug 1354947 - Add equal operators for comparing ComputedTimingFunction with nsTimingFunction. r=birtles 2017-05-13 16:34:38 +09:00
DocumentTimeline.cpp
DocumentTimeline.h
EffectCompositor.cpp Bug 1368889 - Post animation restyle hint againt pseudo element instead of its parent. r=birtles 2017-06-08 10:22:25 +09:00
EffectCompositor.h Bug 1368889 - Post animation restyle hint againt pseudo element instead of its parent. r=birtles 2017-06-08 10:22:25 +09:00
EffectSet.cpp Bug 1361183 - Check Element::MayHaveAnimations() in EffectSet::GetEffectSet(). r=birtles 2017-05-02 07:25:50 +09:00
EffectSet.h Bug 1205475 - (followup) Declare mMayHaveOpacityAnim and mMayHaveTransformAnim as bool. r=me 2017-05-23 21:47:46 +08:00
Keyframe.h Bug 1365674 - stylo: Simulate compute value failure for dom/animation mochitests. r=hiro 2017-05-30 10:24:08 +02:00
KeyframeEffect.cpp Backed out changeset 3a3a19e0d903 (bug 1361915) for build bustage a=backout 2017-05-11 15:11:29 -07:00
KeyframeEffect.h
KeyframeEffectParams.cpp
KeyframeEffectParams.h
KeyframeEffectReadOnly.cpp Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles 2017-06-02 09:38:54 +09:00
KeyframeEffectReadOnly.h Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles 2017-06-02 09:38:54 +09:00
KeyframeUtils.cpp Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles 2017-06-02 09:38:54 +09:00
KeyframeUtils.h Bug 1367293 - Don't get parent style for GetComputedKeyframeValuesFor. r=birtles 2017-06-02 09:38:54 +09:00
PendingAnimationTracker.cpp
PendingAnimationTracker.h
PseudoElementHashEntry.h
TimingParams.cpp
TimingParams.h
moz.build Bug 1367293 - Drop ServoComputedValuesWithParent entirely. r=birtles 2017-06-02 09:39:00 +09:00