aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-07-27 09:52:15 +0000
committerCorey Farwell <coreyf@rwell.org>2017-07-29 09:58:09 +0000
commitbefe5384725bdc20f16b2eff76009c67d01b6bac (patch)
tree99734a8e15142133e54eec5a8f1eefbd2f9039a7 /components/selectors/parser.rs
parent6238035612a45ae3757739f6a0c17b7b6feda8ec (diff)
downloadservo-befe5384725bdc20f16b2eff76009c67d01b6bac.tar.gz
servo-befe5384725bdc20f16b2eff76009c67d01b6bac.zip
Utilize match_ignore_ascii_case! in more places.
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.