mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
selectors: Remove useless assertion.
The code below asserts the same in a more fine-grained way.
This commit is contained in:
parent
bcfe523c99
commit
48c85151dc
1 changed files with 0 additions and 9 deletions
|
@ -470,15 +470,6 @@ where
|
|||
E: Element,
|
||||
F: FnMut(&E, ElementSelectorFlags),
|
||||
{
|
||||
if cfg!(debug_assertions) {
|
||||
if context.nesting_level == 0 &&
|
||||
context.shared.matching_mode == MatchingMode::ForStatelessPseudoElement {
|
||||
assert!(iter.clone().any(|c| {
|
||||
matches!(*c, Component::PseudoElement(..))
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
// If this is the special pseudo-element mode, consume the ::pseudo-element
|
||||
// before proceeding, since the caller has already handled that part.
|
||||
if context.nesting_level == 0 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue