Skip to content

merge_pr_30247

Timeline duration can now be stored on an AnimationEffect.
This was needed since for CSS animations, InertEffects with
no owning animation are used until later in the pipeline.
Normally the owning animation of an effect is used to gain
access to the corresponding timeline which provides the timeline
duration needed for timing normalization math, but in some
cases the duration was needed before an effect had an owner
assigned. As such it is now possible to create an InertEffect
and pass in a timeline duration if needed.

Added logic for when CSS animations swap from progress based
timeline to a time based timeline. This new logic preserves
the current progress of the animation even when current times
do not match up.

I also removed time range from some CSS tests since they are
now supported by progress based animations.

Bug: 1216655, 1140602
Change-Id: I7dde1f117968c6465eb7c4c0f4b8b66d9371776f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3130703
Reviewed-by: Kevin Ellis <[email protected]>
Reviewed-by: Anders Hartvoll Ruud <[email protected]>
Commit-Queue: Jordan Taylor <[email protected]>
Cr-Commit-Position: refs/heads/main@{#917801}
Assets 2
Loading