mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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,
|
E: Element,
|
||||||
F: FnMut(&E, ElementSelectorFlags),
|
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
|
// If this is the special pseudo-element mode, consume the ::pseudo-element
|
||||||
// before proceeding, since the caller has already handled that part.
|
// before proceeding, since the caller has already handled that part.
|
||||||
if context.nesting_level == 0 &&
|
if context.nesting_level == 0 &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue