diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-04-10 17:53:46 +1000 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2017-05-15 14:12:08 -0400 |
commit | 2ca80a800f8c1f85135bbdb605f69641ae9aa7d0 (patch) | |
tree | de211324e08525b5b4cf559d93b349aa53ac3642 /components/layout/animation.rs | |
parent | 913491884431b9030db9a8a0a10011fa03aa2db6 (diff) | |
download | servo-2ca80a800f8c1f85135bbdb605f69641ae9aa7d0.tar.gz servo-2ca80a800f8c1f85135bbdb605f69641ae9aa7d0.zip |
Warn about ignored transitions which can't be rooted.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r-- | components/layout/animation.rs | 12 |
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()) |