mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Further changes required by Servo
This commit is contained in:
parent
16168fe4e7
commit
0ebad03ab5
1 changed files with 3 additions and 0 deletions
|
@ -790,7 +790,10 @@ impl Parse for FontSizeAdjust {
|
||||||
) -> Result<Self, ParseError<'i>> {
|
) -> Result<Self, ParseError<'i>> {
|
||||||
let location = input.current_source_location();
|
let location = input.current_source_location();
|
||||||
if let Ok(ident) = input.try_parse(|i| i.expect_ident_cloned()) {
|
if let Ok(ident) = input.try_parse(|i| i.expect_ident_cloned()) {
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
let basis_enabled = static_prefs::pref!("layout.css.font-size-adjust.basis.enabled");
|
let basis_enabled = static_prefs::pref!("layout.css.font-size-adjust.basis.enabled");
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
let basis_enabled = false;
|
||||||
let basis = match_ignore_ascii_case! { &ident,
|
let basis = match_ignore_ascii_case! { &ident,
|
||||||
"none" => return Ok(FontSizeAdjust::none()),
|
"none" => return Ok(FontSizeAdjust::none()),
|
||||||
// Check for size adjustment basis keywords if enabled.
|
// Check for size adjustment basis keywords if enabled.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue