mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Auto merge of #17781 - emilio:assert-not, r=heycam
style: Remove bogus assertion. Bug: 1381682 Reviewed-by: heycam MozReview-Commit-ID: E6bKyBdMUue
This commit is contained in:
commit
8e73bc5b47
1 changed files with 4 additions and 6 deletions
|
@ -266,12 +266,10 @@ impl<'a, 'b: 'a, E> TreeStyleInvalidator<'a, 'b, E>
|
|||
|
||||
// Roots of NAC subtrees can indeed generate sibling invalidations, but
|
||||
// they can be just ignored, since they have no siblings.
|
||||
debug_assert!(child.implemented_pseudo_element().is_none() ||
|
||||
sibling_invalidations.is_empty(),
|
||||
"pseudos can't generate sibling invalidations, since \
|
||||
using them in other position that isn't the \
|
||||
rightmost part of the selector is invalid \
|
||||
(for now at least)");
|
||||
//
|
||||
// Note that we can end up testing selectors that wouldn't end up
|
||||
// matching due to this being NAC, like those coming from document
|
||||
// rules, but we overinvalidate instead of checking this.
|
||||
|
||||
result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue