From 0107b3e019549f8e3ac7bb131001847aa7a37c4a Mon Sep 17 00:00:00 2001 From: Daisuke Akatsuka Date: Wed, 5 Jul 2017 13:02:19 +0900 Subject: [PATCH] rename macro from impl_gecko_keyword_from_trait to impl_gecko_keyword_conversions --- components/style/properties/longhand/font.mako.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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",