mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Further changes required by Servo
This commit is contained in:
parent
b0a1eaebaa
commit
261dcf1f6d
1 changed files with 7 additions and 0 deletions
|
@ -562,10 +562,17 @@ fn parse_hash_color(value: &[u8]) -> Result<RGBA, ()> {
|
|||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue