aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/traversal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/traversal.rs')
-rw-r--r--components/style/traversal.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/components/style/traversal.rs b/components/style/traversal.rs
index 1f64e7f22f0..315688ff187 100644
--- a/components/style/traversal.rs
+++ b/components/style/traversal.rs
@@ -267,7 +267,6 @@ pub trait DomTraversal<E: TElement>: Sync {
context: &mut StyleContext<E>,
parent: E,
parent_data: &ElementData,
- is_initial_style: bool,
) -> bool {
debug_assert!(
parent.has_current_styles_for_traversal(parent_data, context.shared.traversal_flags)
@@ -279,21 +278,6 @@ pub trait DomTraversal<E: TElement>: Sync {
return true;
}
- // Gecko-only XBL handling.
- //
- // When we apply the XBL binding during frame construction, we restyle
- // the whole subtree again if the binding is valid, so assuming it's
- // likely to load valid bindings, we avoid wasted work here, which may
- // be a very big perf hit when elements with bindings are nested
- // heavily.
- if cfg!(feature = "gecko") &&
- is_initial_style &&
- parent_data.styles.primary().has_moz_binding()
- {
- debug!("Parent {:?} has XBL binding, deferring traversal", parent);
- return true;
- }
-
return false;
}
@@ -521,7 +505,7 @@ pub fn recalc_style_at<E, D, F>(
is_servo_nonincremental_layout();
traverse_children = traverse_children &&
- !traversal.should_cull_subtree(context, element, &data, is_initial_style);
+ !traversal.should_cull_subtree(context, element, &data);
// Examine our children, and enqueue the appropriate ones for traversal.
if traverse_children {