Boris Chiou a6ce72cb76 Bug 1741255 - Don't put the scroll animations into PendingAnimationTracker. r=hiro
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
2021-12-15 09:54:43 +00:00
..