mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Further changes required by Servo
This commit is contained in:
parent
c241182d09
commit
fd3d12e214
1 changed files with 10 additions and 6 deletions
|
@ -68,16 +68,20 @@ pub struct ColorMix {
|
||||||
pub hue_adjuster: HueAdjuster,
|
pub hue_adjuster: HueAdjuster,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn allow_color_mix() -> bool {
|
fn allow_color_mix() -> bool {
|
||||||
static_prefs::pref!("layout.css.color-mix.enabled")
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.color-mix.enabled");
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn allow_color_mix() -> bool {
|
fn allow_color_mix_color_spaces() -> bool {
|
||||||
false
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.color-mix.color-spaces.enabled");
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE(emilio): Syntax is still a bit in-flux, since [1] doesn't seem
|
// NOTE(emilio): Syntax is still a bit in-flux, since [1] doesn't seem
|
||||||
|
@ -97,7 +101,7 @@ impl Parse for ColorMix {
|
||||||
}
|
}
|
||||||
|
|
||||||
let color_spaces_enabled = context.chrome_rules_enabled() ||
|
let color_spaces_enabled = context.chrome_rules_enabled() ||
|
||||||
static_prefs::pref!("layout.css.color-mix.color-spaces.enabled");
|
allow_color_mix_color_spaces();
|
||||||
|
|
||||||
input.expect_function_matching("color-mix")?;
|
input.expect_function_matching("color-mix")?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue