style: Don't allow to parse XUL tree pseudo-elements with a single colon.

Now that they're not exposed to the web we can remove this special case.

Differential Revision: https://phabricator.services.mozilla.com/D28071
This commit is contained in:
Emilio Cobos Álvarez 2019-04-19 04:41:17 +00:00
parent c0b17cc844
commit 52026f602b
2 changed files with 2 additions and 13 deletions

View file

@ -351,11 +351,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
self.parse_slotted()
}
fn pseudo_element_allows_single_colon(name: &str) -> bool {
// FIXME: -moz-tree check should probably be ascii-case-insensitive.
::selectors::parser::is_css2_pseudo_element(name) || name.starts_with("-moz-tree-")
}
fn parse_non_ts_pseudo_class(
&self,
location: SourceLocation,