mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Kill CVAS in image.rs.
This commit is contained in:
parent
d1a3cb6d94
commit
b12a34e06e
1 changed files with 5 additions and 5 deletions
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
use Atom;
|
use Atom;
|
||||||
use cssparser::serialize_identifier;
|
use cssparser::serialize_identifier;
|
||||||
use custom_properties::SpecifiedValue;
|
use custom_properties;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
use values::computed::{ComputedValueAsSpecified, Context, ToComputedValue};
|
use values::computed::{Context, ToComputedValue};
|
||||||
|
|
||||||
/// An [image].
|
/// An [image].
|
||||||
///
|
///
|
||||||
|
@ -153,7 +153,7 @@ define_css_keyword_enum!(ShapeExtent:
|
||||||
"contain" => Contain,
|
"contain" => Contain,
|
||||||
"cover" => Cover
|
"cover" => Cover
|
||||||
);
|
);
|
||||||
impl ComputedValueAsSpecified for ShapeExtent {}
|
add_impls_for_keyword_enum!(ShapeExtent);
|
||||||
|
|
||||||
/// A gradient item.
|
/// A gradient item.
|
||||||
/// https://drafts.csswg.org/css-images-4/#color-stop-syntax
|
/// https://drafts.csswg.org/css-images-4/#color-stop-syntax
|
||||||
|
@ -186,10 +186,10 @@ pub struct PaintWorklet {
|
||||||
pub name: Atom,
|
pub name: Atom,
|
||||||
/// The arguments for the worklet.
|
/// The arguments for the worklet.
|
||||||
/// TODO: store a parsed representation of the arguments.
|
/// 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 {
|
impl ToCss for PaintWorklet {
|
||||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue