Bug 1485951 - Adjust an assertion to account for the changes from bug 1485930. r=me
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 24 Aug 2018 13:44:21 +0200
changeset 433275 90c9f876bbb05b9362d7af9008ef12098cc71e74
parent 433274 e0155c8c93a99553f38c3602a5ed59da1f3000ea
child 433276 de8a729b3b5fd20abe415817b4dd309b5c49adcd
push id34503
push useraiakab@mozilla.com
push dateFri, 24 Aug 2018 22:07:45 +0000
treeherdermozilla-central@d2da77c319d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1485951, 1485930
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1485951 - Adjust an assertion to account for the changes from bug 1485930. r=me
servo/components/style/gecko/pseudo_element_definition.mako.rs
--- a/servo/components/style/gecko/pseudo_element_definition.mako.rs
+++ b/servo/components/style/gecko/pseudo_element_definition.mako.rs
@@ -252,17 +252,17 @@ impl PseudoElement {
     }
 
     /// Constructs a tree pseudo-element from the given name and arguments.
     /// "name" must start with "-moz-tree-".
     ///
     /// 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:]}") {
                 return Some(${pseudo_element_variant(pseudo, "args.into()")});
             }
         % endfor
         None
     }