Bug 1485951 - Adjust an assertion to account for the changes from bug 1485930. r=me

This commit is contained in:
Emilio Cobos Álvarez 2018-08-24 13:44:21 +02:00
parent 44843cf2d7
commit 385e2369c5

View File

@ -257,7 +257,7 @@ impl PseudoElement {
/// Returns `None` if the pseudo-element is not recognized.
#[inline]
pub fn tree_pseudo_element(name: &str, args: Box<[Atom]>) -> Option<Self> {
debug_assert!(name.starts_with("-moz-tree-"));
debug_assert!(starts_with_ignore_ascii_case(name, "-moz-tree-"));
let tree_part = &name[10..];
% for pseudo in TREE_PSEUDOS:
if tree_part.eq_ignore_ascii_case("${pseudo.value[11:]}") {