From e82d0c20a6c752d42fa8f5684e6a43ec0ac84e87 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 9 Mar 2018 10:30:29 +0100 Subject: [PATCH] Don't use #[animation(constant)] in ShapeBox We can just rely on the implementation for the involved fields to return an error if the values are different. --- components/style/values/generics/basic_shape.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/style/values/generics/basic_shape.rs b/components/style/values/generics/basic_shape.rs index e653508390f..ef9eac14ec7 100644 --- a/components/style/values/generics/basic_shape.rs +++ b/components/style/values/generics/basic_shape.rs @@ -18,7 +18,7 @@ pub type ClippingShape = ShapeSource #[allow(missing_docs)] -#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)] +#[derive(Animate, Clone, Copy, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)] pub enum GeometryBox { FillBox, StrokeBox, @@ -32,7 +32,7 @@ pub type FloatAreaShape = ShapeSource { ImageOrUrl(ImageOrUrl), Shape( BasicShape, - #[animation(constant)] Option, ), #[animation(error)]