Skip to content

Commit

Permalink
rename macro from impl_gecko_keyword_from_trait to impl_gecko_keyword…
Browse files Browse the repository at this point in the history
…_conversions
  • Loading branch information
dadaa committed Jul 5, 2017
1 parent 961bdee commit 0107b3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/style/properties/longhand/font.mako.rs
Expand Up @@ -16,7 +16,7 @@
</%def>

#[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 {
Expand Down Expand Up @@ -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>

<%helpers:longhand name="font-variant-ligatures" products="gecko" animation_value_type="discrete"
Expand Down Expand Up @@ -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>

<%helpers:longhand name="font-variant-numeric" products="gecko" animation_value_type="discrete"
Expand Down Expand Up @@ -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:longhand>

${helpers.single_keyword_system("font-variant-position",
Expand Down

0 comments on commit 0107b3e

Please sign in to comment.