aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r--components/layout/animation.rs20
1 files changed, 13 insertions, 7 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs
index c9c83744361..9ce47e16d5a 100644
--- a/components/layout/animation.rs
+++ b/components/layout/animation.rs
@@ -89,7 +89,10 @@ pub fn update_animation_state<E>(
},
};
- debug!("update_animation_state({:?}): {:?}", still_running, running_animation);
+ debug!(
+ "update_animation_state({:?}): {:?}",
+ still_running, running_animation
+ );
if still_running {
animations_still_running.push(running_animation);
@@ -97,11 +100,13 @@ pub fn update_animation_state<E>(
}
if let Animation::Transition(node, _, ref frame) = running_animation {
- script_chan.send(ConstellationControlMsg::TransitionEnd(
- node.to_untrusted_node_address(),
- frame.property_animation.property_name().into(),
- frame.duration,
- )).unwrap();
+ script_chan
+ .send(ConstellationControlMsg::TransitionEnd(
+ node.to_untrusted_node_address(),
+ frame.property_animation.property_name().into(),
+ frame.duration,
+ ))
+ .unwrap();
}
expired_animations
@@ -150,7 +155,8 @@ pub fn update_animation_state<E>(
.send(ConstellationMsg::ChangeRunningAnimationsState(
pipeline_id,
animation_state,
- )).unwrap();
+ ))
+ .unwrap();
}
/// Recalculates style for a set of animations. This does *not* run with the DOM