mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove layout.css.unknown-webkit-pseudo-element.
Enabled since bug 1486325 (Firefox 64). Depends on D101290 Differential Revision: https://phabricator.services.mozilla.com/D101291
This commit is contained in:
parent
70edd2318c
commit
f16305d25a
1 changed files with 4 additions and 6 deletions
|
@ -205,12 +205,10 @@ impl PseudoElement {
|
|||
if starts_with_ignore_ascii_case(name, "-moz-tree-") {
|
||||
return PseudoElement::tree_pseudo_element(name, Box::new([]))
|
||||
}
|
||||
if static_prefs::pref!("layout.css.unknown-webkit-pseudo-element") {
|
||||
const WEBKIT_PREFIX: &str = "-webkit-";
|
||||
if starts_with_ignore_ascii_case(name, WEBKIT_PREFIX) {
|
||||
let part = string_as_ascii_lowercase(&name[WEBKIT_PREFIX.len()..]);
|
||||
return Some(PseudoElement::UnknownWebkit(part.into()));
|
||||
}
|
||||
const WEBKIT_PREFIX: &str = "-webkit-";
|
||||
if starts_with_ignore_ascii_case(name, WEBKIT_PREFIX) {
|
||||
let part = string_as_ascii_lowercase(&name[WEBKIT_PREFIX.len()..]);
|
||||
return Some(PseudoElement::UnknownWebkit(part.into()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue