style: Make tree pseudo-element prefix not case-sensitive.

Differential Revision: https://phabricator.services.mozilla.com/D4185
This commit is contained in:
Xidorn Quan 2018-08-24 09:23:05 +00:00 committed by Emilio Cobos Álvarez
parent dceb58664e
commit c587fa3586
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 4 additions and 5 deletions

View file

@ -242,9 +242,7 @@ impl PseudoElement {
return Some(PseudoElement::Placeholder);
}
_ => {
// FIXME: -moz-tree check should probably be
// ascii-case-insensitive.
if name.starts_with("-moz-tree-") {
if starts_with_ignore_ascii_case(name, "-moz-tree-") {
return PseudoElement::tree_pseudo_element(name, Box::new([]))
}
}