style: Kill CVAS in image.rs.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-09 14:53:22 +02:00
parent d1a3cb6d94
commit b12a34e06e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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<SpecifiedValue>,
pub arguments: Vec<custom_properties::SpecifiedValue>,
}
impl ComputedValueAsSpecified for PaintWorklet {}
trivial_to_computed_value!(PaintWorklet);
impl ToCss for PaintWorklet {
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {