mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix Servo build.
This commit is contained in:
parent
cccac2cedd
commit
8c6fe09dce
5 changed files with 55 additions and 6 deletions
|
@ -881,7 +881,17 @@ impl CalcNode {
|
|||
return Ok(MathFunction::Calc);
|
||||
}
|
||||
|
||||
if !static_prefs::pref!("layout.css.comparison-functions.enabled") {
|
||||
#[cfg(feature = "gecko")]
|
||||
fn comparison_functions_enabled() -> bool {
|
||||
static_prefs::pref!("layout.css.comparison-functions.enabled")
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
fn comparison_functions_enabled() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
if !comparison_functions_enabled() {
|
||||
return Err(location.new_unexpected_token_error(Token::Function(name.clone())));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue