Fix spec compliance of Animation.currentTime.
Previously a missing start time or timeline would result in current time being computed as zero rather than null. In addition, the ordering of checks in current time was not to spec. Note that this patch does not fully address the failures in the setting-current-time-of-an-animation test. The remaining failure is due to incorrect handling of play state (pause vs pending) and missing API (animation.pending and animation.updatePlaybackRate). Bug: 818196, 771722 Change-Id: I363d22f9c4098eac6dbc92a3aac4076378de7adf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573662Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Commit-Queue: Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#654839}
Showing
Please register or sign in to comment