mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Further changes required by Servo
This commit is contained in:
parent
21d1bdeb9b
commit
34eb94c71e
1 changed files with 8 additions and 1 deletions
|
@ -48,6 +48,13 @@ fn mod_rem_enabled() -> bool {
|
|||
return false;
|
||||
}
|
||||
|
||||
fn exp_enabled() -> bool {
|
||||
#[cfg(feature = "gecko")]
|
||||
return static_prefs::pref!("layout.css.exp.enabled");
|
||||
#[cfg(feature = "servo")]
|
||||
return false;
|
||||
}
|
||||
|
||||
/// The name of the mathematical function that we're parsing.
|
||||
#[derive(Clone, Copy, Debug, Parse)]
|
||||
pub enum MathFunction {
|
||||
|
@ -871,7 +878,7 @@ impl CalcNode {
|
|||
} else if matches!(function, Mod | Rem) {
|
||||
mod_rem_enabled()
|
||||
} else if matches!(function, Pow | Sqrt | Hypot | Log | Exp) {
|
||||
static_prefs::pref!("layout.css.exp.enabled")
|
||||
exp_enabled()
|
||||
} else {
|
||||
true
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue