mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Further changes required by Servo
This commit is contained in:
parent
e55c03c8ff
commit
a298c296e4
1 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,13 @@ fn round_enabled() -> bool {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn mod_rem_enabled() -> bool {
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.mod-rem.enabled");
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/// The name of the mathematical function that we're parsing.
|
/// The name of the mathematical function that we're parsing.
|
||||||
#[derive(Clone, Copy, Debug, Parse)]
|
#[derive(Clone, Copy, Debug, Parse)]
|
||||||
pub enum MathFunction {
|
pub enum MathFunction {
|
||||||
|
@ -801,7 +808,7 @@ impl CalcNode {
|
||||||
} else if matches!(function, Round) {
|
} else if matches!(function, Round) {
|
||||||
round_enabled()
|
round_enabled()
|
||||||
} else if matches!(function, Mod | Rem) {
|
} else if matches!(function, Mod | Rem) {
|
||||||
static_prefs::pref!("layout.css.mod-rem.enabled")
|
mod_rem_enabled()
|
||||||
} else {
|
} else {
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue