mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
825410b2e4
This patch adds a test that we correctly incorporate the delay when setting a layer animation's initialCurrentTime. The notion of 'current time' on layer animations differs from that on main thread animations in that it does not incorporate the animation delay. Instead, we wait until an animation's delay has complete before putting it on the layer and then it we add without delay. For animations that are still waiting to start we need to factor this delay into the initialCurrentTime stored on the layer animation so that when we update the animation's start time it represents the time *after* the delay has finished. Previously we failed to do this but no tests failed since all existing tests for delay rely on DOMWindowUtils.advanceTimeAndRefresh which avoids this particular code path (since we don't add pending animations to layers while the refresh driver is under test control). This patch adds a test for animation delay that does not rely on DOMWindowUtils.advanceTimeAndRefresh which has been confirmed to fail if we don't incorporate the delay in our calculation of initialCurrentTime. |
||
---|---|---|
.. | ||
test | ||
Animation.cpp | ||
Animation.h | ||
AnimationEffect.cpp | ||
AnimationEffect.h | ||
AnimationPlayer.cpp | ||
AnimationPlayer.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
AnimationUtils.h | ||
moz.build | ||
PendingPlayerTracker.cpp | ||
PendingPlayerTracker.h |