mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
ba8d2e5233
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. |
||
---|---|---|
.. | ||
analysis | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |