mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a8a325e307
Now that there is a public accessor for mStartTime, we can make it a protected member of AnimationPlayer. The only time mStartTime is ever set is when playing the animation so we can replace external modifications to mStartTime with calls to Play(). This simplifies implementing deferred starting of animations in bug 927349 by isolating the deferred playback logic to AnimationPlayer. Note that even when we call PauseFromStyle immediately afterwards we still need to call PlayFromStyle (or Play) first in order to resolve the time at which the player should be paused. A newly created player doesn't have a current time so if we were simply to call pause it wouldn't pause at the start of the animation as we might expect. The call to Play(FromStyle) will cause the current time to become zero and then we pause at that time. |
||
---|---|---|
.. | ||
test | ||
Animation.cpp | ||
Animation.h | ||
AnimationEffect.cpp | ||
AnimationEffect.h | ||
AnimationPlayer.cpp | ||
AnimationPlayer.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
AnimationUtils.h | ||
moz.build |