From a523fffc9ea694632c0d4a747ae2cbba982c125c Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Fri, 17 Nov 2023 17:49:01 +0100 Subject: [PATCH] Further changes required by Servo --- components/style/stylesheets/import_rule.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/stylesheets/import_rule.rs b/components/style/stylesheets/import_rule.rs index 6921e708aa7..35391caae6a 100644 --- a/components/style/stylesheets/import_rule.rs +++ b/components/style/stylesheets/import_rule.rs @@ -255,7 +255,12 @@ impl ImportRule { .ok() }; - let supports = if !static_prefs::pref!("layout.css.import-supports.enabled") { + #[cfg(feature = "gecko")] + let supports_enabled = static_prefs::pref!("layout.css.import-supports.enabled"); + #[cfg(feature = "servo")] + let supports_enabled = false; + + let supports = if !supports_enabled { None } else { input