rename macro from impl_gecko_keyword_from_trait to impl_gecko_keyword_conversions

This commit is contained in:
Daisuke Akatsuka 2017-07-05 13:02:19 +09:00
parent 961bdee6a3
commit 0107b3e019

View file

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