mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
1e9fc689ae
This patch changes the inheritance of ElementPropertyTransition so that it is a subclass of Animation not AnimationPlayer. The only thing special about ElementPropertyTransition is it stores some extra state for reversing transitions and an extra ValuePortionFor convenience method. This reversing behavior is implemented by the transition manager by creating a new AnimationPlayer (i.e. it is *not* a property of the AnimationPlayer). As a result this extra state can be pushed down to Animation which simplifies the code significantly. In future if we implement KeyframeEffect as a separate object we may be able to push transition-specific state down to KeyframeEffect instead. |
||
---|---|---|
.. | ||
test | ||
Animation.cpp | ||
Animation.h | ||
AnimationPlayer.cpp | ||
AnimationPlayer.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
moz.build |