diff options
author | Martin Robinson <mrobinson@igalia.com> | 2020-05-12 18:05:24 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2020-05-13 11:02:52 +0200 |
commit | 0f1831e2fa5843876ef06afa864546a02f1f0f88 (patch) | |
tree | a29f98954ecae6b8e4a34445b41ca951326656e4 /components/script/animations.rs | |
parent | bdfa6b0751f23c105182bbfe9929c8997c2d7073 (diff) | |
download | servo-0f1831e2fa5843876ef06afa864546a02f1f0f88.tar.gz servo-0f1831e2fa5843876ef06afa864546a02f1f0f88.zip |
Remove AnimatedProperty
This removes an extra layer of abstraction and allows Servo to share
more code with Gecko. In addition, we will need to handle raw
`AnimationValue` structs soon in order to fully implement "faster
reversing of interrupted transitions."
Diffstat (limited to 'components/script/animations.rs')
-rw-r--r-- | components/script/animations.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/animations.rs b/components/script/animations.rs index a666ac3ed84..91946853f22 100644 --- a/components/script/animations.rs +++ b/components/script/animations.rs @@ -113,7 +113,7 @@ impl Animations { transition.state = AnimationState::Finished; update.add_event( transition.node, - transition.property_animation.property_name().into(), + transition.property_animation.property_id().name().into(), TransitionOrAnimationEventType::TransitionEnd, transition.property_animation.duration, ); @@ -135,7 +135,7 @@ impl Animations { // according to https://drafts.csswg.org/css-transitions/#event-transitionevent update.add_event( transition.node, - transition.property_animation.property_name().into(), + transition.property_animation.property_id().name().into(), TransitionOrAnimationEventType::TransitionCancel, (now - transition.start_time).max(0.), ); @@ -157,7 +157,7 @@ impl Animations { // according to https://drafts.csswg.org/css-transitions/#event-transitionevent update.add_event( transition.node, - transition.property_animation.property_name().into(), + transition.property_animation.property_id().name().into(), TransitionOrAnimationEventType::TransitionRun, 0., ); |