mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add more enum types to avoid unreachable!() for selector case-sensitivity
This commit is contained in:
parent
7149a6a29d
commit
76166bce58
6 changed files with 57 additions and 48 deletions
|
@ -72,10 +72,6 @@ impl GeckoElementSnapshot {
|
|||
let ignore_case = match case_sensitivity {
|
||||
CaseSensitivity::CaseSensitive => false,
|
||||
CaseSensitivity::AsciiCaseInsensitive => true,
|
||||
CaseSensitivity::AsciiCaseInsensitiveIfInHtmlElementInHtmlDocument => {
|
||||
unreachable!("selectors/matching.rs should have \
|
||||
called case_sensitivity.to_definite()");
|
||||
}
|
||||
};
|
||||
// FIXME: case sensitivity for operators other than Equal
|
||||
match operator {
|
||||
|
|
|
@ -1162,10 +1162,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
let ignore_case = match case_sensitivity {
|
||||
CaseSensitivity::CaseSensitive => false,
|
||||
CaseSensitivity::AsciiCaseInsensitive => true,
|
||||
CaseSensitivity::AsciiCaseInsensitiveIfInHtmlElementInHtmlDocument => {
|
||||
unreachable!("selectors/matching.rs should have \
|
||||
called case_sensitivity.to_definite()");
|
||||
}
|
||||
};
|
||||
// FIXME: case sensitivity for operators other than Equal
|
||||
match operator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue