mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
85688c0d50
The existing relationship between the particular versions of AnimationPlayer::Play* (particularly in the CSSAnimationPlayer) subclass are confusing because, for example, CSSAnimationPlayer::PlayFromStyle needs to be careful to *not* call Play on CSSAnimationPlayer, but only on the parent object (since otherwise we reset the sticky pause behavior). This patch reworks this relationship by adding a protected DoPlay method that performs the common pausing behavior. Play/PlayFromJS/PlayFromStyle then add flushing, sticky pausing etc. as necessary. This patch also removes the UpdateFlags enum and parameters previously used to control whether we forced an update to style. This is no longer necessary since we no longer call 'Play' from style. Instead we make Play always post restyles. If we come across a case where we want to call Play and *not* post restyles, we can re-add the flags then. Roughly the same arrangement is true for Pause except that we don't currently flush styles for CSS animations in PauseFromJS since it currently won't make any observable difference. |
||
---|---|---|
.. | ||
analysis | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |