From c87b485fa6adc871c167dbcd2be045ec58004724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Sep 2017 13:07:47 +0200 Subject: [PATCH] style: Derive ToComputedValue for keyword types. --- components/style/macros.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/style/macros.rs b/components/style/macros.rs index 4edcf3f7d08..503c13ba283 100644 --- a/components/style/macros.rs +++ b/components/style/macros.rs @@ -95,7 +95,7 @@ macro_rules! define_keyword_type { #[allow(missing_docs)] #[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[derive(Animate, Clone, ComputeSquaredDistance, Copy, PartialEq)] - #[derive(ToAnimatedZero, ToCss)] + #[derive(ToAnimatedZero, ToComputedValue, ToCss)] pub struct $name; impl fmt::Debug for $name { @@ -113,7 +113,6 @@ macro_rules! define_keyword_type { } } - impl $crate::values::computed::ComputedValueAsSpecified for $name {} impl $crate::values::animated::AnimatedValueAsComputed for $name {} }; }