mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Prefer Servo-specific ToCss for all types
This commit is contained in:
parent
5dbc8d02c9
commit
6061985898
44 changed files with 149 additions and 161 deletions
|
@ -49,6 +49,13 @@ macro_rules! impl_to_css_for_predefined_type {
|
|||
};
|
||||
}
|
||||
|
||||
impl_to_css_for_predefined_type!(f32);
|
||||
impl_to_css_for_predefined_type!(i32);
|
||||
impl_to_css_for_predefined_type!(u32);
|
||||
impl_to_css_for_predefined_type!(::cssparser::Token<'a>);
|
||||
impl_to_css_for_predefined_type!(::cssparser::RGBA);
|
||||
impl_to_css_for_predefined_type!(::cssparser::Color);
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! define_css_keyword_enum {
|
||||
($name: ident: $( $css: expr => $variant: ident ),+,) => {
|
||||
|
@ -97,7 +104,7 @@ macro_rules! __define_css_keyword_enum__actual {
|
|||
}
|
||||
}
|
||||
|
||||
impl ::cssparser::ToCss for $name {
|
||||
impl ToCss for $name {
|
||||
fn to_css<W>(&self, dest: &mut W) -> ::std::fmt::Result
|
||||
where W: ::std::fmt::Write {
|
||||
match *self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue