diff options
Diffstat (limited to 'servo/components/selectors/matching.rs')
-rw-r--r-- | servo/components/selectors/matching.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/servo/components/selectors/matching.rs b/servo/components/selectors/matching.rs index 282d04064b..6eaafb3038 100644 --- a/servo/components/selectors/matching.rs +++ b/servo/components/selectors/matching.rs @@ -362,12 +362,7 @@ where let iter = selector.iter_from(selector.len() - from_offset); debug_assert!( - iter.clone().next().is_some() || - (from_offset != selector.len() && - matches!( - selector.combinator_at_parse_order(from_offset), - Combinator::SlotAssignment | Combinator::PseudoElement - )), + iter.clone().next().is_some() || from_offset != selector.len(), "Got the math wrong: {:?} | {:?} | {} {}", selector, selector.iter_raw_match_order().as_slice(), |