aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r--components/selectors/parser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs
index 490399ce38c..e9b59f7f831 100644
--- a/components/selectors/parser.rs
+++ b/components/selectors/parser.rs
@@ -1586,10 +1586,10 @@ where Impl: SelectorImpl, F: FnOnce(i32, i32) -> Component<Impl> {
/// double-colon syntax, which can be used for all pseudo-elements).
pub fn is_css2_pseudo_element<'i>(name: &CowRcStr<'i>) -> bool {
// ** Do not add to this list! **
- return name.eq_ignore_ascii_case("before") ||
- name.eq_ignore_ascii_case("after") ||
- name.eq_ignore_ascii_case("first-line") ||
- name.eq_ignore_ascii_case("first-letter");
+ match_ignore_ascii_case! { name,
+ "before" | "after" | "first-line" | "first-letter" => true,
+ _ => false,
+ }
}
/// Parse a simple selector other than a type selector.