mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Remove useless traversal checks.
The callee checks this.
This commit is contained in:
parent
d403f40438
commit
f8575d97de
1 changed files with 2 additions and 6 deletions
|
@ -235,9 +235,7 @@ pub trait DomTraversal<E: TElement> : Sync {
|
|||
// Look at whether there has been any attribute or state change, and
|
||||
// invalidate our style, and the one of our siblings and descendants as
|
||||
// needed.
|
||||
if !flags.for_animation_only() {
|
||||
data.invalidate_style_if_needed(root, shared_context);
|
||||
}
|
||||
data.invalidate_style_if_needed(root, shared_context);
|
||||
|
||||
let parent = root.traversal_parent();
|
||||
let parent_data = match parent {
|
||||
|
@ -813,9 +811,7 @@ where
|
|||
// as needed.
|
||||
//
|
||||
// NB: This will be a no-op if there's no snapshot.
|
||||
if !flags.for_animation_only() {
|
||||
child_data.invalidate_style_if_needed(child, &context.shared);
|
||||
}
|
||||
child_data.invalidate_style_if_needed(child, &context.shared);
|
||||
|
||||
if D::element_needs_traversal(child, flags, &*child_data, Some(data)) {
|
||||
note_child(child_node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue