mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
rename macro from impl_gecko_keyword_from_trait to impl_gecko_keyword_conversions
This commit is contained in:
parent
961bdee6a3
commit
0107b3e019
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue