diff --git a/components/style/values/computed/font.rs b/components/style/values/computed/font.rs index 98c3e014c4b..1613e64892b 100644 --- a/components/style/values/computed/font.rs +++ b/components/style/values/computed/font.rs @@ -326,12 +326,12 @@ impl ToComputedValue for specified::MozScriptLevel { let parent = cx.builder.get_parent_font().clone__moz_script_level(); parent as i32 + rel } - specified::MozScriptLevel::Absolute(abs) => abs, + specified::MozScriptLevel::MozAbsolute(abs) => abs, }; cmp::min(int, i8::MAX as i32) as i8 } fn from_computed_value(other: &i8) -> Self { - specified::MozScriptLevel::Absolute(*other as i32) + specified::MozScriptLevel::MozAbsolute(*other as i32) } } diff --git a/components/style/values/specified/font.rs b/components/style/values/specified/font.rs index cc1286a9803..f0f2c2e9be8 100644 --- a/components/style/values/specified/font.rs +++ b/components/style/values/specified/font.rs @@ -991,7 +991,8 @@ pub enum MozScriptLevel { /// Should only be serialized by presentation attributes, so even though /// serialization for this would look the same as for the `Relative` /// variant, it is unexposed, so no big deal. - Absolute(i32), + #[css(function)] + MozAbsolute(i32), /// Change `font-size` automatically. Auto } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 6ae160f7d37..07d05379628 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -3202,7 +3202,7 @@ pub extern "C" fn Servo_DeclarationBlock_SetNumberValue( let prop = match_wrap_declared! { long, MozScriptSizeMultiplier => value, // Gecko uses Number values to signal that it is absolute - MozScriptLevel => MozScriptLevel::Absolute(value as i32), + MozScriptLevel => MozScriptLevel::MozAbsolute(value as i32), }; write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| { decls.push(prop, Importance::Normal, DeclarationSource::CssOm);