fune/dom/animation
Boris Chiou 984653245b Bug 1923208 - Set a proper schedule time for transitionrun. a=RyanVM
See the testcase. If we replace a transition and flush it in the
meantime, after a timeout, we may fail to set a proper `mPendingReadyTime`
for the newly-created transition, because the refresh driver is not in
refresh when we call `Animation::EnsurePaintIsScheduled()` in
`Animation::PlayNoUpdate()`. So we don't have a pending ready time and
so we cannot trigger this transition at the current tick.

Therefore, this newly-created transition would be triggered at the next tick.
The means it doesn't have `mStartTime` when we enqueued the transition event
i.e. transitionrun, at the current tick. `zeroTimeStamp` would be null,
and we fail to sort the events.

In this patch, we just assign a proper schedule time for transitionrun
if `zeroTimeStamp` is null.

Original Revision: https://phabricator.services.mozilla.com/D226213

Differential Revision: https://phabricator.services.mozilla.com/D235387
2025-01-24 01:17:05 +00:00
..
test Bug 1880782 - Remove dom.animations-api.compositing.enabled and dom.animations-api.timelines.enabled prefs r=webidl,devtools-reviewers,firefox-animation-reviewers,nchevobbe,smaug,boris 2024-06-05 19:13:23 +00:00
Animation.cpp Bug 1923208 - Fallback to compare the order of event targets for CSSTransition if they have the same time. a=RyanVM 2025-01-24 01:17:04 +00:00
Animation.h Bug 1923208 - Fallback to compare the order of event targets for CSSTransition if they have the same time. a=RyanVM 2025-01-24 01:17:04 +00:00
AnimationComparator.h
AnimationEffect.cpp
AnimationEffect.h
AnimationEventDispatcher.cpp
AnimationEventDispatcher.h Bug 1923208 - Fallback to compare the order of event targets for CSSTransition if they have the same time. a=RyanVM 2025-01-24 01:17:04 +00:00
AnimationPerformanceWarning.cpp
AnimationPerformanceWarning.h
AnimationPropertySegment.h
AnimationTarget.h
AnimationTimeline.cpp Bug 1923344 - r=smaug, a=dsmith 2024-10-08 16:25:12 +00:00
AnimationTimeline.h Bug 1888748 - Ensure animations started on the same tick share ready time. r=birtles 2024-04-17 06:07:17 +00:00
AnimationUtils.cpp
AnimationUtils.h
ComputedTiming.h
CSSAnimation.cpp Bug 1923208 - Store animation index into AnimationEventDispatcher. a=RyanVM 2025-01-24 01:17:04 +00:00
CSSAnimation.h Bug 1923208 - Store animation index into AnimationEventDispatcher. a=RyanVM 2025-01-24 01:17:04 +00:00
CSSPseudoElement.cpp
CSSPseudoElement.h
CSSTransition.cpp Bug 1923208 - Set a proper schedule time for transitionrun. a=RyanVM 2025-01-24 01:17:05 +00:00
CSSTransition.h Bug 1923208 - Fallback to compare the order of event targets for CSSTransition if they have the same time. a=RyanVM 2025-01-24 01:17:04 +00:00
DocumentTimeline.cpp Bug 1923344 - r=smaug, a=dsmith 2024-10-08 16:25:12 +00:00
DocumentTimeline.h Bug 1896762 - Make animation timing match the spec. r=smaug,firefox-animation-reviewers,boris 2024-05-17 16:33:06 +00:00
EffectCompositor.cpp Bug 1900958 - Create a SVGObserverUtils::SelfOrAncestorHasRenderingObservers method that we can use in animations r=emilio 2024-06-07 09:28:41 +00:00
EffectCompositor.h
EffectSet.cpp
EffectSet.h Bug 1888317 - Use AnimatedPropertyIDSet for EffectSet::mPropertiesForAnimationsLevel. r=layout-reviewers,zrhoffman,emilio 2024-05-21 16:55:00 +00:00
ElementAnimationData.cpp
ElementAnimationData.h Bug 1896516 Part 9 - Remove nsIScrollableFrame usages under dom/. r=layout-reviewers,emilio 2024-05-30 06:32:21 +00:00
Keyframe.h
KeyframeEffect.cpp Bug 1880782 - Remove dom.animations-api.compositing.enabled and dom.animations-api.timelines.enabled prefs r=webidl,devtools-reviewers,firefox-animation-reviewers,nchevobbe,smaug,boris 2024-06-05 19:13:23 +00:00
KeyframeEffect.h Bug 1888317 - Use AnimatedPropertyIDSet for EffectSet::mPropertiesForAnimationsLevel. r=layout-reviewers,zrhoffman,emilio 2024-05-21 16:55:00 +00:00
KeyframeEffectParams.h
KeyframeUtils.cpp Bug 1880782 - Remove dom.animations-api.compositing.enabled and dom.animations-api.timelines.enabled prefs r=webidl,devtools-reviewers,firefox-animation-reviewers,nchevobbe,smaug,boris 2024-06-05 19:13:23 +00:00
KeyframeUtils.h
moz.build
PostRestyleMode.h
PseudoElementHashEntry.h
ScrollTimeline.cpp Bug 1896516 Part 6 - Remove nsIScrollableFrame usages in nsLayoutUtils. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
ScrollTimeline.h Bug 1896516 Part 6 - Remove nsIScrollableFrame usages in nsLayoutUtils. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
ScrollTimelineAnimationTracker.cpp Bug 1923344 - r=smaug, a=dsmith 2024-10-08 16:25:12 +00:00
ScrollTimelineAnimationTracker.h
TimingParams.cpp
TimingParams.h
ViewTimeline.cpp Bug 1896516 Part 6 - Remove nsIScrollableFrame usages in nsLayoutUtils. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00
ViewTimeline.h Bug 1896516 Part 6 - Remove nsIScrollableFrame usages in nsLayoutUtils. r=layout-reviewers,emilio 2024-05-30 06:32:20 +00:00