mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
style: Adjust an assertion to account for the changes from bug 1485930.
This commit is contained in:
parent
68ab6217bd
commit
d12d420974
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ impl PseudoElement {
|
||||||
/// Returns `None` if the pseudo-element is not recognized.
|
/// Returns `None` if the pseudo-element is not recognized.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn tree_pseudo_element(name: &str, args: Box<[Atom]>) -> Option<Self> {
|
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..];
|
let tree_part = &name[10..];
|
||||||
% for pseudo in TREE_PSEUDOS:
|
% for pseudo in TREE_PSEUDOS:
|
||||||
if tree_part.eq_ignore_ascii_case("${pseudo.value[11:]}") {
|
if tree_part.eq_ignore_ascii_case("${pseudo.value[11:]}") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue