diff --git a/components/style/properties/longhand/font.mako.rs b/components/style/properties/longhand/font.mako.rs index d0a66f006f2..e9defdb86ac 100644 --- a/components/style/properties/longhand/font.mako.rs +++ b/components/style/properties/longhand/font.mako.rs @@ -16,7 +16,7 @@ #[cfg(feature = "gecko")] -macro_rules! impl_gecko_keyword_from_trait { +macro_rules! impl_gecko_keyword_conversions { ($name: ident, $utype: ty) => { impl From<$utype> for $name { fn from(bits: $utype) -> $name { @@ -1623,7 +1623,7 @@ macro_rules! exclusive_value { } #[cfg(feature = "gecko")] - impl_gecko_keyword_from_trait!(VariantEastAsian, u16); + impl_gecko_keyword_conversions!(VariantEastAsian, u16); <%helpers:longhand name="font-variant-ligatures" products="gecko" animation_value_type="discrete" @@ -1782,7 +1782,7 @@ macro_rules! exclusive_value { } #[cfg(feature = "gecko")] - impl_gecko_keyword_from_trait!(VariantLigatures, u16); + impl_gecko_keyword_conversions!(VariantLigatures, u16); <%helpers:longhand name="font-variant-numeric" products="gecko" animation_value_type="discrete" @@ -1930,7 +1930,7 @@ macro_rules! exclusive_value { } #[cfg(feature = "gecko")] - impl_gecko_keyword_from_trait!(VariantNumeric, u8); + impl_gecko_keyword_conversions!(VariantNumeric, u8); ${helpers.single_keyword_system("font-variant-position",