Web-animation: Update CalculateAnimationPlayState to align with the spec.
Previously, the paused_ flag was used to signal that the animation was in a paused state. This flag is not part of the spec and is being phased out. Instead, we look for pending pause or play tasks and whether there is a start time to determine if the animation is paused in alignment with the spec. Note that fixing play state calculation entailed fixing the handling of setting a zero playback rate. Previously, setting the playback rate to zero would clear the start time; however, this has the unwanted side effect of forced the animation into the paused state, which is not to spec. A running or finished animation should have a start time (if not a pending change) even if the playback rate is zero. https://drafts.csswg.org/web-animations/#play-states Bug: 960944 Change-Id: I1fd43315d3b1c42b22302bf730c450a03836861a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1862258 Commit-Queue: Kevin Ellis <kevers@chromium.org> Reviewed-by:Majid Valipour <majidvp@chromium.org> Cr-Commit-Position: refs/heads/master@{#706628}
Showing
Please register or sign in to comment