Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-05-16 10:42:02 +02:00
parent b0a1eaebaa
commit 261dcf1f6d

View file

@ -562,10 +562,17 @@ fn parse_hash_color(value: &[u8]) -> Result<RGBA, ()> {
impl Color { impl Color {
/// Returns whether this color is a system color. /// Returns whether this color is a system color.
#[cfg(feature = "gecko")]
pub fn is_system(&self) -> bool { pub fn is_system(&self) -> bool {
matches!(self, Color::System(..)) 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. /// Returns currentcolor value.
#[inline] #[inline]
pub fn currentcolor() -> Color { pub fn currentcolor() -> Color {