add debug_assert to is_super_selector for pseudo
This commit is contained in:
parent
a82de89adc
commit
e96fc409e9
@ -487,6 +487,7 @@ impl Pseudo {
|
|||||||
compound: &CompoundSelector,
|
compound: &CompoundSelector,
|
||||||
parents: Option<Vec<ComplexSelectorComponent>>,
|
parents: Option<Vec<ComplexSelectorComponent>>,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
|
debug_assert!(self.selector.is_some());
|
||||||
match self.normalized_name.as_str() {
|
match self.normalized_name.as_str() {
|
||||||
"matches" | "any" => {
|
"matches" | "any" => {
|
||||||
let pseudos = selector_pseudos_named(compound.clone(), &self.name, true);
|
let pseudos = selector_pseudos_named(compound.clone(), &self.name, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user