[scroll-animations] Introduce CSSScrollTimelineOptions
Previously, a StyleRuleScrollTimeline would produce a ScrollTimeline directly. This CL introduces CSSScrollTimelineOptions as an intermediate between the two. On its own, this is not terribly useful, but it will become useful in the future when we implement support for dynamically changing @scroll-timeline rules. We'd create *two* CSSScrollTimelineOptions instances: one from the updated @scroll-timeline rule, and one from the current ScrollTimeline of the running animation. Given those two CSSScrollTimelineOptions instances, we can then compare them for equality, and either do nothing if they are equal, or create and set a new ScrollTimeline if they are not. Bug: 1074052 Change-Id: Ic3c26beda1dc297a4f8e6c168fa3750f8a0c040b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2332599 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#795422}
Showing
Please register or sign in to comment