From 261dcf1f6dd8aa89ee16bfb0557a19c90ee7b01a Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Tue, 16 May 2023 10:42:02 +0200 Subject: [PATCH] Further changes required by Servo --- components/style/values/specified/color.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index c70d69e01b8..dc311680b36 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -562,10 +562,17 @@ fn parse_hash_color(value: &[u8]) -> Result { impl Color { /// Returns whether this color is a system color. + #[cfg(feature = "gecko")] pub fn is_system(&self) -> bool { matches!(self, Color::System(..)) } + /// Returns whether this color is a system color. + #[cfg(feature = "servo")] + pub fn is_system(&self) -> bool { + false + } + /// Returns currentcolor value. #[inline] pub fn currentcolor() -> Color {