mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

Basically, we use the current target scroll position as the ready time for scroll animations, so we don't need to wait until it gets painted. In fact, it's unclear whether do we need play/pause pending status for scroll animations, so we choose the natural way for now, and this should match other browsers' behaviors. Note: We avoid puting the scroll animation into PendingAnimationTracker in PlayNoUpdate() and Pause(). However, we may still "try" to remove scroll animations from PendingAnimationTracker in some APIs just in case if those APIs change the animations from using DocumentTimeline to using ScrollTimeline. They should be revisited once we expose ScrollTimeline to JS. Differential Revision: https://phabricator.services.mozilla.com/D132750