From 2167a0c0990c15b6e67f2b93171369355a9dc179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 11 Aug 2020 10:27:42 +0000 Subject: [PATCH] style: Remove layout.css.comparison-functions.enabled. Shipped since FF75 (bug 1519519). Differential Revision: https://phabricator.services.mozilla.com/D86693 --- components/style/values/specified/calc.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/components/style/values/specified/calc.rs b/components/style/values/specified/calc.rs index 9947fc7a8cc..fa5415ee3b8 100644 --- a/components/style/values/specified/calc.rs +++ b/components/style/values/specified/calc.rs @@ -517,26 +517,8 @@ impl CalcNode { name: &CowRcStr<'i>, location: cssparser::SourceLocation, ) -> Result> { - // 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, + "calc" => MathFunction::Calc, "min" => MathFunction::Min, "max" => MathFunction::Max, "clamp" => MathFunction::Clamp,