mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
2520d366a6
As the second step in dividing functionality between AnimationPlayer and Animation, this patch moves the AnimationTiming member from AnimationPlayer to Animation. Most of this patch is simply moving code around. However, one significant functional difference is that Animation::GetLocalTime() uses the mParentTime member which is set when the Animation is updated by the player it is attached to. Other less significant differences are: * AnimationPlayer::GetLocalTime is renamed to GetCurrentTimeDuration In Web Animations, animation players have a (writeable) "current time" and animations have a (read-only) "local time". We would call the method simply "GetCurrentTime" (instead of "GetCurrentTimeDuration") but GetCurrentTime is the name of the method used in the content-facing API where it returns a double. * "IsCurrent" is defined on both AnimationPlayer and Animation with the version in AnimationPlayer serving mostly as a convenience shortcut to the version on Animation. * Animation::GetComputedTiming (previously on AnimationPlayer) now makes the timing parameter optional since most of the time it is not needed. |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
doc | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
skia | ||
src | ||
tests | ||
thebes | ||
ycbcr | ||
moz.build |