mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
99c8462d7f
In StyleContextChanged, when we drop a transition, we also update the animation generation, unless the transition is finished. This is so that we will update animations on layers accordingly. For all intents and purposes this is equivalent to only updating the animation generation if the animation is current. Even in the case where the transition has *just* finished, it will either already be considered finished and the regular animation tick (which uses the same refresh driver time as we see in StyleContextChanged) will have triggered an unthrottled sample to take the animation off the compositor (since Animation::CanThrottle detects newly finished animations), or it will be not yet finished in which case HasCurrentEffect will return true. If anything changed timing properties in the time between running the refresh driver tick and calling StyleContextChanged (such as seeking the Animation) it will also trigger a layer update. This patch also removes an unncessary assertion in ElementPropertyTransition::CurrentValuePortion. This functions operates sensibly even for finished transitions (due to the way it manages the fill mode). It is up to the call site to determine whether it should be calling this function on a finished transition or not. |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |