diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-09 10:30:29 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-09 11:56:49 +0100 |
commit | e82d0c20a6c752d42fa8f5684e6a43ec0ac84e87 (patch) | |
tree | 0218efe591d746948eb669789a4c3de2af8b48bc /components/style/values/generics/basic_shape.rs | |
parent | 539c60389ea911628de0c67d796e191ec04c8912 (diff) | |
download | servo-e82d0c20a6c752d42fa8f5684e6a43ec0ac84e87.tar.gz servo-e82d0c20a6c752d42fa8f5684e6a43ec0ac84e87.zip |
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.
Diffstat (limited to 'components/style/values/generics/basic_shape.rs')
-rw-r--r-- | components/style/values/generics/basic_shape.rs | 5 |
1 files 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<BasicShape, Url> = ShapeSource<BasicShape, GeometryBox, U /// <https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box> #[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<BasicShape, Image> = ShapeSource<BasicShape, ShapeBox, I /// https://drafts.csswg.org/css-shapes-1/#typedef-shape-box #[allow(missing_docs)] #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] -#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq)] +#[derive(Animate, Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq)] #[derive(ToComputedValue, ToCss)] pub enum ShapeBox { MarginBox, @@ -49,7 +49,6 @@ pub enum ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> { ImageOrUrl(ImageOrUrl), Shape( BasicShape, - #[animation(constant)] Option<ReferenceBox>, ), #[animation(error)] |