mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +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
|
// Roots of NAC subtrees can indeed generate sibling invalidations, but
|
||||||
// they can be just ignored, since they have no siblings.
|
// they can be just ignored, since they have no siblings.
|
||||||
debug_assert!(child.implemented_pseudo_element().is_none() ||
|
//
|
||||||
sibling_invalidations.is_empty(),
|
// Note that we can end up testing selectors that wouldn't end up
|
||||||
"pseudos can't generate sibling invalidations, since \
|
// matching due to this being NAC, like those coming from document
|
||||||
using them in other position that isn't the \
|
// rules, but we overinvalidate instead of checking this.
|
||||||
rightmost part of the selector is invalid \
|
|
||||||
(for now at least)");
|
|
||||||
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue