mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
style: Remove layout.css.comparison-functions.enabled.
Shipped since FF75 (bug 1519519). Differential Revision: https://phabricator.services.mozilla.com/D86693
This commit is contained in:
parent
5ba426ae6f
commit
2167a0c099
1 changed files with 1 additions and 19 deletions
|
@ -517,26 +517,8 @@ impl CalcNode {
|
||||||
name: &CowRcStr<'i>,
|
name: &CowRcStr<'i>,
|
||||||
location: cssparser::SourceLocation,
|
location: cssparser::SourceLocation,
|
||||||
) -> Result<MathFunction, ParseError<'i>> {
|
) -> Result<MathFunction, ParseError<'i>> {
|
||||||
// TODO(emilio): Unify below when the pref for math functions is gone.
|
|
||||||
if name.eq_ignore_ascii_case("calc") {
|
|
||||||
return Ok(MathFunction::Calc);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
fn comparison_functions_enabled() -> bool {
|
|
||||||
static_prefs::pref!("layout.css.comparison-functions.enabled")
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
|
||||||
fn comparison_functions_enabled() -> bool {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
if !comparison_functions_enabled() {
|
|
||||||
return Err(location.new_unexpected_token_error(Token::Function(name.clone())));
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(match_ignore_ascii_case! { &*name,
|
Ok(match_ignore_ascii_case! { &*name,
|
||||||
|
"calc" => MathFunction::Calc,
|
||||||
"min" => MathFunction::Min,
|
"min" => MathFunction::Min,
|
||||||
"max" => MathFunction::Max,
|
"max" => MathFunction::Max,
|
||||||
"clamp" => MathFunction::Clamp,
|
"clamp" => MathFunction::Clamp,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue