Simplify the animation-policy "once" implementation in SMILTimeContainer
Using the "max presentation time" concept we can greatly simplify the "once" animation-policy by essentially letting it define a limited window of the timeline in which the animation will be active. This allows us to drop the associated timer and other doodads, leaving just a fairly simple method that is called whenever the container's presentation time is reset. There is a small change in behavior in that the container is no longer explicitly paused, but rather just halted after 3 seconds. Replace the layout test with a set of unittests. Bug: 998526 Change-Id: I2aaa927198bc7918b5767381753a5334ebcd115d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2030969Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#738699}
Showing
This diff is collapsed.
Please register or sign in to comment