mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Stop ticking animations on non-dirty nodes during traversal.
This commit is contained in:
parent
99ad3678fa
commit
b493565cc1
3 changed files with 5 additions and 12 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
//! Traversing the DOM tree; the bloom filter.
|
||||
|
||||
use animation;
|
||||
use context::{LocalStyleContext, SharedStyleContext, StyleContext};
|
||||
use dom::{OpaqueNode, TNode, UnsafeNode};
|
||||
use matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleSharingResult};
|
||||
|
@ -367,17 +366,6 @@ pub fn recalc_style_at<'a, N, C>(context: &'a C,
|
|||
node.set_restyle_damage(damage);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Finish any expired transitions.
|
||||
let mut existing_style = node.get_existing_style().unwrap();
|
||||
let had_animations_to_expire = animation::complete_expired_transitions(
|
||||
node.opaque(),
|
||||
&mut existing_style,
|
||||
context.shared_context()
|
||||
);
|
||||
if had_animations_to_expire {
|
||||
node.set_style(existing_style);
|
||||
}
|
||||
}
|
||||
|
||||
let unsafe_layout_node = node.to_unsafe();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue