From ca3d802f03110c8b572bdc26e102934c037af2e0 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 29 Nov 2016 17:51:31 -0800 Subject: [PATCH] layout: Minor style cleanup. --- components/layout/animation.rs | 8 +++++--- components/style/animation.rs | 4 +++- 2 files changed, 8 insertions(+), 4 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, 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, 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, AnimationState::AnimationsPresent }; - constellation_chan.send(ConstellationMsg::ChangeRunningAnimationsState(pipeline_id, animation_state)) + constellation_chan.send(ConstellationMsg::ChangeRunningAnimationsState(pipeline_id, + animation_state)) .unwrap(); } diff --git a/components/style/animation.rs b/components/style/animation.rs index d9f357ec3cb..cf9f04e161f 100644 --- a/components/style/animation.rs +++ b/components/style/animation.rs @@ -359,7 +359,9 @@ pub fn start_transitions_if_applicable(new_animations_sender: &Sender let mut had_animations = false; for i in 0..new_style.get_box().transition_property_count() { // Create any property animations, if applicable. - let property_animations = PropertyAnimation::from_transition(i, old_style, Arc::make_mut(new_style)); + let property_animations = PropertyAnimation::from_transition(i, + old_style, + Arc::make_mut(new_style)); for property_animation in property_animations { // Per [1], don't trigger a new transition if the end state for that transition is // the same as that of a transition that's already running on the same node.