From 5c6d3b820e5e2842cae196b102623634661187bf Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 26 Jul 2017 16:44:32 -0700 Subject: [PATCH] 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 --- components/style/traversal.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/style/traversal.rs b/components/style/traversal.rs index 988deb1a759..25e52c03cee 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -243,10 +243,6 @@ pub trait DomTraversal : 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...