diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-10-20 09:47:18 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-10-20 19:25:04 -0700 |
commit | b493565cc168aed9ae7b1fafcae8c6878bce0b5a (patch) | |
tree | f6997043c030a8d4bc06362b43b4f6cf77ed6934 /components/script/script_thread.rs | |
parent | 99ad3678fa6490b83d209fd1648d49f074bb8c16 (diff) | |
download | servo-b493565cc168aed9ae7b1fafcae8c6878bce0b5a.tar.gz servo-b493565cc168aed9ae7b1fafcae8c6878bce0b5a.zip |
Stop ticking animations on non-dirty nodes during traversal.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 73a3d1458d8..14c0d6a840b 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1536,6 +1536,9 @@ impl ScriptThread { let node = unsafe { node.get_jsmanaged().get_for_script() }; let window = window_from_node(node); + // Not quite the right thing - see #13865. + node.dirty(NodeDamage::NodeStyleDamaged); + if let Some(el) = node.downcast::<Element>() { if &*window.GetComputedStyle(el, None).Display() == "none" { return; |