From 9cf7df1f31aa341ba0451c0a1b0ea53c678168f6 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Mon, 22 May 2023 20:41:42 +0200 Subject: [PATCH] Further changes required by Servo --- components/style/values/specified/image.rs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/components/style/values/specified/image.rs b/components/style/values/specified/image.rs index 0e55d18d079..f2167e52800 100644 --- a/components/style/values/specified/image.rs +++ b/components/style/values/specified/image.rs @@ -81,6 +81,16 @@ fn cross_fade_enabled() -> bool { false } +#[cfg(feature = "gecko")] +fn image_set_enabled() -> bool { + true +} + +#[cfg(feature = "servo")] +fn image_set_enabled() -> bool { + false +} + impl SpecifiedValueInfo for Gradient { const SUPPORTED_TYPES: u8 = CssType::GRADIENT; @@ -122,7 +132,9 @@ impl SpecifiedValueInfo for generic::ImageSet