mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Further changes required by Servo
This commit is contained in:
parent
cc09c2ffb1
commit
76192031d3
1 changed files with 8 additions and 9 deletions
|
@ -21,11 +21,17 @@ use style_traits::values::specified::AllowedNumericType;
|
||||||
use style_traits::{CssWriter, ParseError, SpecifiedValueInfo, StyleParseErrorKind, ToCss};
|
use style_traits::{CssWriter, ParseError, SpecifiedValueInfo, StyleParseErrorKind, ToCss};
|
||||||
|
|
||||||
fn trig_enabled() -> bool {
|
fn trig_enabled() -> bool {
|
||||||
static_prefs::pref!("layout.css.trig.enabled")
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.trig.enabled");
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn nan_inf_enabled() -> bool {
|
fn nan_inf_enabled() -> bool {
|
||||||
static_prefs::pref!("layout.css.nan-inf.enabled")
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.nan-inf.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.
|
||||||
|
@ -303,13 +309,6 @@ impl generic::CalcNodeLeaf for Leaf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn trig_enabled() -> bool {
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
return static_prefs::pref!("layout.css.trig.enabled");
|
|
||||||
#[cfg(feature = "servo")]
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A calc node representation for specified values.
|
/// A calc node representation for specified values.
|
||||||
pub type CalcNode = generic::GenericCalcNode<Leaf>;
|
pub type CalcNode = generic::GenericCalcNode<Leaf>;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue