diff --git a/components/style/values/generics/image.rs b/components/style/values/generics/image.rs index 4f42e459036..874511330d4 100644 --- a/components/style/values/generics/image.rs +++ b/components/style/values/generics/image.rs @@ -8,10 +8,10 @@ use Atom; use cssparser::serialize_identifier; -use custom_properties::SpecifiedValue; +use custom_properties; use std::fmt; use style_traits::ToCss; -use values::computed::{ComputedValueAsSpecified, Context, ToComputedValue}; +use values::computed::{Context, ToComputedValue}; /// An [image]. /// @@ -153,7 +153,7 @@ define_css_keyword_enum!(ShapeExtent: "contain" => Contain, "cover" => Cover ); -impl ComputedValueAsSpecified for ShapeExtent {} +add_impls_for_keyword_enum!(ShapeExtent); /// A gradient item. /// https://drafts.csswg.org/css-images-4/#color-stop-syntax @@ -186,10 +186,10 @@ pub struct PaintWorklet { pub name: Atom, /// The arguments for the worklet. /// TODO: store a parsed representation of the arguments. - pub arguments: Vec, + pub arguments: Vec, } -impl ComputedValueAsSpecified for PaintWorklet {} +trivial_to_computed_value!(PaintWorklet); impl ToCss for PaintWorklet { fn to_css(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {