mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Unify the trivial ToComputedValue implementations, and add impls for i32.
This commit is contained in:
parent
b94dd4885d
commit
a4da2220c1
2 changed files with 6 additions and 7 deletions
|
@ -20,8 +20,6 @@ macro_rules! trivial_to_computed_value {
|
|||
}
|
||||
}
|
||||
|
||||
trivial_to_computed_value!(i32);
|
||||
|
||||
/// A macro to parse an identifier, or return an `UnexpectedIndent` error
|
||||
/// otherwise.
|
||||
///
|
||||
|
|
|
@ -333,11 +333,12 @@ impl<T> ToComputedValue for T
|
|||
}
|
||||
}
|
||||
|
||||
impl ComputedValueAsSpecified for Atom {}
|
||||
impl ComputedValueAsSpecified for bool {}
|
||||
impl ComputedValueAsSpecified for f32 {}
|
||||
|
||||
impl ComputedValueAsSpecified for specified::BorderStyle {}
|
||||
trivial_to_computed_value!(Atom);
|
||||
trivial_to_computed_value!(u8);
|
||||
trivial_to_computed_value!(bool);
|
||||
trivial_to_computed_value!(i32);
|
||||
trivial_to_computed_value!(f32);
|
||||
trivial_to_computed_value!(BorderStyle);
|
||||
|
||||
/// A `<number>` value.
|
||||
pub type Number = CSSFloat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue