diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-11-29 17:51:31 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-11-30 16:36:02 -0800 |
commit | ca3d802f03110c8b572bdc26e102934c037af2e0 (patch) | |
tree | 7133b4006f31cc4937b306368cc1a0505050e2bc /components/layout/animation.rs | |
parent | 89dff2d77f72f3f383de4a678aa1cf64ab02058a (diff) | |
download | servo-ca3d802f03110c8b572bdc26e102934c037af2e0.tar.gz servo-ca3d802f03110c8b572bdc26e102934c037af2e0.zip |
layout: Minor style cleanup.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r-- | components/layout/animation.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs index e26332a3499..b14771e5de9 100644 --- a/components/layout/animation.rs +++ b/components/layout/animation.rs @@ -88,7 +88,8 @@ pub fn update_animation_state(constellation_chan: &IpcSender<ConstellationMsg>, if let Animation::Transition(_, unsafe_node, _, ref frame, _) = running_animation { script_chan.send(ConstellationControlMsg::TransitionEnd(unsafe_node, - frame.property_animation.property_name(), + frame.property_animation + .property_name(), frame.duration)) .unwrap(); } @@ -113,7 +114,7 @@ pub fn update_animation_state(constellation_chan: &IpcSender<ConstellationMsg>, for new_running_animation in new_running_animations { running_animations.entry(*new_running_animation.node()) .or_insert_with(Vec::new) - .push(new_running_animation); + .push(new_running_animation) } let animation_state = if running_animations.is_empty() { @@ -122,7 +123,8 @@ pub fn update_animation_state(constellation_chan: &IpcSender<ConstellationMsg>, AnimationState::AnimationsPresent }; - constellation_chan.send(ConstellationMsg::ChangeRunningAnimationsState(pipeline_id, animation_state)) + constellation_chan.send(ConstellationMsg::ChangeRunningAnimationsState(pipeline_id, + animation_state)) .unwrap(); } |