aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/animation.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-11-29 17:51:31 -0800
committerPatrick Walton <pcwalton@mimiga.net>2016-11-30 16:36:02 -0800
commitca3d802f03110c8b572bdc26e102934c037af2e0 (patch)
tree7133b4006f31cc4937b306368cc1a0505050e2bc /components/layout/animation.rs
parent89dff2d77f72f3f383de4a678aa1cf64ab02058a (diff)
downloadservo-ca3d802f03110c8b572bdc26e102934c037af2e0.tar.gz
servo-ca3d802f03110c8b572bdc26e102934c037af2e0.zip
layout: Minor style cleanup.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r--components/layout/animation.rs8
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();
}