diff options
Diffstat (limited to 'components/style/macros.rs')
-rw-r--r-- | components/style/macros.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/style/macros.rs b/components/style/macros.rs index 151cfaa2f60..7899ef61083 100644 --- a/components/style/macros.rs +++ b/components/style/macros.rs @@ -82,17 +82,11 @@ macro_rules! add_impls_for_keyword_enum { macro_rules! define_keyword_type { ($name: ident, $css: expr) => { - #[derive(Clone, PartialEq, Copy)] - #[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[allow(missing_docs)] + #[cfg_attr(feature = "servo", derive(HeapSizeOf))] + #[derive(Clone, Copy, PartialEq, ToCss)] pub struct $name; - impl ::style_traits::ToCss for $name { - fn to_css<W>(&self, dest: &mut W) -> ::std::fmt::Result where W: ::std::fmt::Write { - write!(dest, $css) - } - } - impl $crate::properties::animated_properties::Animatable for $name { #[inline] fn add_weighted(&self, _other: &Self, _self_progress: f64, _other_progress: f64) |