From b12a34e06ecab1a4bb7067f0a23686b4803c5546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 9 Sep 2017 14:53:22 +0200 Subject: [PATCH] style: Kill CVAS in image.rs. --- components/style/values/generics/image.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 {