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:
Bobby Holley 2017-07-26 16:44:32 -07:00
parent 68c8808711
commit 5c6d3b820e

View file

@ -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...