mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Move font-variant-numeric outside of mako
This commit is contained in:
parent
7b886b4479
commit
a38de8b540
6 changed files with 253 additions and 176 deletions
|
@ -14,6 +14,23 @@ macro_rules! exclusive_value {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
macro_rules! impl_gecko_keyword_conversions {
|
||||
($name: ident, $utype: ty) => {
|
||||
impl From<$utype> for $name {
|
||||
fn from(bits: $utype) -> $name {
|
||||
$name::from_gecko_keyword(bits)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<$name> for $utype {
|
||||
fn from(v: $name) -> $utype {
|
||||
v.to_gecko_keyword()
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! trivial_to_computed_value {
|
||||
($name:ty) => {
|
||||
impl $crate::values::computed::ToComputedValue for $name {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue