gecko-dev/dom/animation
Hiroyuki Ikezoe 0bb119e341 Bug 1428692 - Don't use tweakExpectedRestyleCount in the case where we don't use the returned count for observeStyling called right after. r=birtles
tweakExpectedRestyleCount() is supposed to work with observeStyle() which is
called right after tweakExpectedRestyleCount().  That's because
tweakExpectedRestyleCount() adjusts the expected restyle count which will
happen in continuous frames that begins from the startsRightNow() call,
especially a redundant restyle might be observed in the last frame if the
animation did not begin at the current timeline time and if the Promise inside
the last requestAnimationFrame is fulfilled after restyling happened.

Instead of using tweakExpectedRestyleCount(), we need to check whether the
animation begun at the current timeline time when the animation started, and if
the animation begun at the current timeline time, we don't observe the
superfluous restyle in a frame after the animation element was re-attached.

MozReview-Commit-ID: 6TLQERSSbjU

--HG--
extra : rebase_source : 1a1dcb56b889bebedb44346bbc315ec01870cf79
2018-01-30 06:41:31 +09:00
..
test Bug 1428692 - Don't use tweakExpectedRestyleCount in the case where we don't use the returned count for observeStyling called right after. r=birtles 2018-01-30 06:41:31 +09:00
Animation.cpp Bug 1415780 - Call UpdateTiming() prior to remove the animtion from the timeline in Animation::CancelNoUpdate. r=birtles 2018-01-27 21:17:27 +09:00
Animation.h Bug 1430975 - Don't pass a copy of StickyTimeDuration. r=boris 2018-01-17 18:05:03 +09:00
AnimationComparator.h Bug 1417365 - Unified build issues in dom/animation. r=baku 2017-10-26 11:55:28 +01:00
AnimationEffectReadOnly.cpp Bug 1425548 - Update references to Web Animations spec in dom/animation; r=hiro 2017-12-15 14:55:08 -06:00
AnimationEffectReadOnly.h Bug 1379564 - Use BaseTimeDuration::bool() to check the TimeDuration is not zero. r=birtles 2017-07-10 16:21:30 +09:00
AnimationEffectTiming.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
AnimationEffectTiming.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
AnimationEffectTimingReadOnly.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
AnimationEffectTimingReadOnly.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
AnimationEventDispatcher.cpp Bug 1415780 - Let AnimationEventDispatcher observe nsRefreshDriver. r=birtles 2018-01-27 21:17:27 +09:00
AnimationEventDispatcher.h Bug 1415780 - Let AnimationEventDispatcher observe nsRefreshDriver. r=birtles 2018-01-27 21:17:27 +09:00
AnimationPerformanceWarning.cpp Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
AnimationPerformanceWarning.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
AnimationPropertySegment.h
AnimationTarget.h
AnimationTimeline.cpp Bug 1374125 - Use EnsureInserted instead of Contains+PutEntry to avoid unnecessary hashtable lookups. r=froydnj 2017-06-19 18:19:14 +02:00
AnimationTimeline.h
AnimationUtils.cpp Bug 1418220 - Drop AnimationUtils::IsCoreAPIEnabled(ForCaller) and use nsContentUtils::AnimationsAPICoreEnabled / nsDocument::IsWebAnimationsEnabled instead; r=hiro 2017-11-20 14:18:43 +09:00
AnimationUtils.h Bug 1418220 - Drop AnimationUtils::IsCoreAPIEnabled(ForCaller) and use nsContentUtils::AnimationsAPICoreEnabled / nsDocument::IsWebAnimationsEnabled instead; r=hiro 2017-11-20 14:18:43 +09:00
AnimValuesStyleRule.cpp Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam 2017-07-31 14:32:59 +02:00
AnimValuesStyleRule.h
ComputedTiming.h Bug 1431295 - Drop 'undef None' macro in dom/animation/. r=boris 2018-01-18 14:12:51 +09:00
ComputedTimingFunction.cpp
ComputedTimingFunction.h Bug 1425548 - Update references to Web Animations spec in dom/animation; r=hiro 2017-12-15 14:55:08 -06:00
CSSPseudoElement.cpp Bug 1413216 - Fix some missing includes in dom code. r=baku 2017-10-12 13:50:23 +01:00
CSSPseudoElement.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
DocumentTimeline.cpp Bug 1416966 - Perform a micro task checkpoint in DocumentTimeline::WillRefresh. r=bevis,birtles 2017-12-12 18:44:05 +09:00
DocumentTimeline.h
EffectCompositor.cpp Bug 1417365 - Unified build issues in dom/animation. r=baku 2017-10-26 11:55:28 +01:00
EffectCompositor.h Bug 1406750: Fix detection of animations to avoid flushing. r=hiro,birtles 2017-10-25 19:02:01 +02:00
EffectSet.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
EffectSet.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
Keyframe.h Bug 1381389 - Append PropertyValuePair objects on Gecko side so they are initialized correctly; r=hiro 2017-07-20 14:38:54 +09:00
KeyframeEffect.cpp Bug 1413104 - Drop telemetry probes for layer size; r=botond 2017-12-14 21:36:09 +00:00
KeyframeEffect.h Bug 1339690 - Part 3: Drop spacing mode. r=birtles,smaug 2017-06-13 15:09:19 +08:00
KeyframeEffectParams.h Bug 1431295 - Drop 'undef None' macro in dom/animation/. r=boris 2018-01-18 14:12:51 +09:00
KeyframeEffectReadOnly.cpp Bug 1425213 - Unthrottle transform animations regardless in overflowable frames or not. r=hiro 2018-01-17 22:44:00 +02:00
KeyframeEffectReadOnly.h Bug 1425213 - Unthrottle transform animations regardless in overflowable frames or not. r=hiro 2018-01-17 22:44:00 +02:00
KeyframeUtils.cpp Bug 1432104 - KeyframeUtils::GetAnimationPropertiesFromKeyframes needs specializations both for GeckoStyleContext* and const ServoStyleContext*. r=birtles 2018-01-22 19:19:41 +09:00
KeyframeUtils.h Bug 1425548 - Update references to Web Animations spec in dom/animation; r=hiro 2017-12-15 14:55:08 -06:00
moz.build Bug 1415780 - Make AnimationEventDispatcher refcountable. r=birtles 2018-01-27 21:17:27 +09:00
PendingAnimationTracker.cpp Bug 1403433 - Add another variant of SchedulePaint that does not call InvalidateRenderingObservers for PendingAnimationTracker. r=birtles 2017-09-29 19:42:13 +09:00
PendingAnimationTracker.h Bug 1282691 - Drop the assertion about an animation that we're making play-pending not already being pause-pending; r=boris 2017-10-13 14:37:51 +09:00
PseudoElementHashEntry.h
TimingParams.cpp Bug 1408303 - Part 3: Move several Servo parsers into ServoCSSParser helper class. r=heycam 2017-12-01 17:35:47 +08:00
TimingParams.h Bug 1431295 - Drop 'undef None' macro in dom/animation/. r=boris 2018-01-18 14:12:51 +09:00