aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/layout/animation.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs
index 9b1d0671b9a..d1673ac44a1 100644
--- a/components/layout/animation.rs
+++ b/components/layout/animation.rs
@@ -115,11 +115,15 @@ pub fn update_animation_state(constellation_chan: &IpcSender<ConstellationMsg>,
// Add new running animations.
for new_running_animation in new_running_animations {
- match newly_transitioning_nodes {
- Some(ref mut nodes) if new_running_animation.is_transition() => {
- nodes.push(new_running_animation.node().to_untrusted_node_address());
+ if new_running_animation.is_transition() {
+ match newly_transitioning_nodes {
+ Some(ref mut nodes) => {
+ nodes.push(new_running_animation.node().to_untrusted_node_address());
+ }
+ None => {
+ warn!("New transition encountered from compositor-initiated layout.");
+ }
}
- _ => ()
}
running_animations.entry(*new_running_animation.node())