mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stop unconditionally traversing every element in the subtree on reconstruct traversals.
We already have a more-specific check further down in the file, which was added in the same revision. I think this one was erroneous. MozReview-Commit-ID: CnP0zCpBtnp
This commit is contained in:
parent
68c8808711
commit
5c6d3b820e
1 changed files with 0 additions and 4 deletions
|
@ -243,10 +243,6 @@ pub trait DomTraversal<E: TElement> : Sync {
|
|||
return true;
|
||||
}
|
||||
|
||||
if traversal_flags.contains(traversal_flags::ForReconstruct) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If the element is native-anonymous and an ancestor frame will be
|
||||
// reconstructed, the child and all its descendants will be destroyed.
|
||||
// In that case, we wouldn't need to traverse the subtree...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue