mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
style: More gracefully deal with broken calls into selector matching
If this happens again, it might be worth not matching rather than potentially crashing. Though I guess crashing is a very good way getting it reported soon... Differential Revision: https://phabricator.services.mozilla.com/D178921
This commit is contained in:
parent
b329d547be
commit
ad81122fcf
1 changed files with 4 additions and 2 deletions
|
@ -319,12 +319,14 @@ where
|
|||
}
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
ref other => {
|
||||
debug_assert!(
|
||||
false,
|
||||
"Used MatchingMode::ForStatelessPseudoElement \
|
||||
in a non-pseudo selector"
|
||||
in a non-pseudo selector {:?}",
|
||||
other
|
||||
);
|
||||
return false;
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue