diff options
Diffstat (limited to 'components/style/sequential.rs')
-rw-r--r-- | components/style/sequential.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/components/style/sequential.rs b/components/style/sequential.rs index 3e06db02ac0..3b461bf1923 100644 --- a/components/style/sequential.rs +++ b/components/style/sequential.rs @@ -35,16 +35,7 @@ pub fn traverse_dom<E, D>(traversal: &D, }; let root_depth = root.depth(); - - if token.traverse_unstyled_children_only() { - for kid in root.as_node().traversal_children() { - if kid.as_element().map_or(false, |el| el.get_data().is_none()) { - discovered.push_back(WorkItem(kid, root_depth + 1)); - } - } - } else { - discovered.push_back(WorkItem(root.as_node(), root_depth)); - } + discovered.push_back(WorkItem(root.as_node(), root_depth)); // Process the nodes breadth-first, just like the parallel traversal does. // This helps keep similar traversal characteristics for the style sharing |