From 45d6e64d51dda49f7d6ba55558d15cb8a9bdba08 Mon Sep 17 00:00:00 2001 From: Sonia Singla Date: Mon, 22 May 2023 10:08:05 +0200 Subject: [PATCH] style: Remove layout.css.clip-path-path.enabled Differential Revision: https://phabricator.services.mozilla.com/D120235 --- components/style/values/specified/basic_shape.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/components/style/values/specified/basic_shape.rs b/components/style/values/specified/basic_shape.rs index 37aaae2ec2a..3c571ff8e84 100644 --- a/components/style/values/specified/basic_shape.rs +++ b/components/style/values/specified/basic_shape.rs @@ -55,15 +55,6 @@ pub type ShapeRadius = generic::ShapeRadius; /// The specified value of `Polygon` pub type Polygon = generic::GenericPolygon; -#[cfg(feature = "gecko")] -fn is_clip_path_path_enabled(context: &ParserContext) -> bool { - context.chrome_rules_enabled() || static_prefs::pref!("layout.css.clip-path-path.enabled") -} -#[cfg(feature = "servo")] -fn is_clip_path_path_enabled(_: &ParserContext) -> bool { - false -} - /// A helper for both clip-path and shape-outside parsing of shapes. fn parse_shape_or_box<'i, 't, R, ReferenceBox>( context: &ParserContext, @@ -116,10 +107,8 @@ impl Parse for ClipPath { return Ok(ClipPath::None); } - if is_clip_path_path_enabled(context) { - if let Ok(p) = input.try_parse(|i| Path::parse(context, i)) { - return Ok(ClipPath::Path(p)); - } + if let Ok(p) = input.try_parse(|i| Path::parse(context, i)) { + return Ok(ClipPath::Path(p)); } if let Ok(url) = input.try_parse(|i| SpecifiedUrl::parse(context, i)) {