Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-03 03:15:22 +01:00 committed by Martin Robinson
parent a8fef9d4f2
commit ecc6ba79b0

View file

@ -93,7 +93,10 @@ where
}
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;
}
/// Serialize a specified dimension with unit, calc, and NaN/infinity handling (if enabled)