aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonia Singla <soniasingla.1812@gmail.com>2023-05-22 10:08:05 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-24 18:32:38 +0200
commit45d6e64d51dda49f7d6ba55558d15cb8a9bdba08 (patch)
tree4ff50b6d626547fa330334ad3f2e4b0ab524deed
parent8f4d78295272ad59d9fa90c294e5f3d6fdc93c83 (diff)
downloadservo-45d6e64d51dda49f7d6ba55558d15cb8a9bdba08.tar.gz
servo-45d6e64d51dda49f7d6ba55558d15cb8a9bdba08.zip
style: Remove layout.css.clip-path-path.enabled
Differential Revision: https://phabricator.services.mozilla.com/D120235
-rw-r--r--components/style/values/specified/basic_shape.rs15
1 files 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<NonNegativeLengthPercentage>;
/// The specified value of `Polygon`
pub type Polygon = generic::GenericPolygon<LengthPercentage>;
-#[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)) {