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
Animation.cpp Bug 1353987 - Clear ready promise when animation is canceled. r=birtles 2017-06-12 10:45:48 +09:00
Animation.h Bug 1340958 - Templatize ComposeStyle. r=birtles 2017-03-17 13:22:13 +09:00
AnimationComparator.h
AnimationEffectReadOnly.cpp Bug 1342957 - Fix incorrect MOZ_ASSERT in AnimationEffectReadOnly. r=hiro 2017-02-28 01:38:52 +08:00
AnimationEffectReadOnly.h Bug 1301305 - Add AnimationEffectReadOnly::AffectsGeometry() helper to identify effects that animate geometric properties; r=hiro 2016-12-02 10:04:08 +09:00
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 Bug 1311257 - Move AnimationPropertySegment in a separate header and expose it in FFI. r=heycam 2017-04-06 10:34:50 +09:00
AnimationTarget.h Bug 1318223 - Use NonOwningAnimationTarget in OwningElementRef. r=boris, r=birtles 2017-03-26 16:46:00 -04:00
AnimationTimeline.cpp Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8 2017-01-03 21:47:55 +02:00
AnimationTimeline.h
AnimationUtils.cpp Bug 1333846 - Part 1: Move ContainsAnimatedScale() codes into dom/animation/. r=birtles a=abillings 2017-02-09 11:28:47 +09:00
AnimationUtils.h Bug 1333846 - Part 1: Move ContainsAnimatedScale() codes into dom/animation/. r=birtles a=abillings 2017-02-09 11:28:47 +09:00
AnimValuesStyleRule.cpp Bug 1338769 - Don't move const reference into AnimValuesStyleRule. r=birtles 2017-02-12 08:30:22 +09:00
AnimValuesStyleRule.h Bug 1305325 - Part 2: Add AnimValuesStyleRule::GetValue and HasValue to get the last composed style. r=birtles 2016-12-04 08:07:39 +09:00
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 Bug 1248340 - Part 2: Implement Frames in ComputedTimingFunction. r=birtles 2017-02-24 16:59:02 +08:00
ComputedTimingFunction.h Bug 1354947 - Add equal operators for comparing ComputedTimingFunction with nsTimingFunction. r=birtles 2017-05-13 16:34:38 +09:00
CSSPseudoElement.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
CSSPseudoElement.h
DocumentTimeline.cpp Bug 1317209 - Part 4: Don't ref-count nsDOMNavigationTiming in DocumentTimeline. r=heycam 2017-01-13 17:34:38 +08:00
DocumentTimeline.h Bug 1302973 - Store timelines on document; r=smaug 2016-10-09 22:36:56 +09:00
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 Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam 2017-04-05 14:39:23 +09:00
KeyframeEffectParams.cpp Bug 1321879 part 2. Stop using IsCallerChrome() in animations API. r=birtles 2016-12-06 23:47:23 -10:00
KeyframeEffectParams.h Bug 1321879 part 2. Stop using IsCallerChrome() in animations API. r=birtles 2016-12-06 23:47:23 -10:00
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
moz.build Bug 1367293 - Drop ServoComputedValuesWithParent entirely. r=birtles 2017-06-02 09:39:00 +09:00
PendingAnimationTracker.cpp Bug 1301305 - Extend PendingAnimationTracker to mark play-pending animations if there are geometric animations starting at the same time; r=hiro 2016-12-02 10:10:44 +09:00
PendingAnimationTracker.h Bug 1301305 - Extend PendingAnimationTracker to mark play-pending animations if there are geometric animations starting at the same time; r=hiro 2016-12-02 10:10:44 +09:00
PseudoElementHashEntry.h
TimingParams.cpp Bug 1343964 part 1 - Move URLExtraData into its own header. r=heycam 2017-04-04 10:04:13 +10:00
TimingParams.h