style: Remove bogus assertion.

Bug: 1381682
Reviewed-by: heycam
MozReview-Commit-ID: E6bKyBdMUue
This commit is contained in:
Emilio Cobos Álvarez 2017-07-19 00:47:35 +02:00
parent d403f40438
commit 2d57e001aa
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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
}