Do not use CVAS for the quotes property

This commit is contained in:
Anthony Ramine 2017-09-11 16:35:11 +02:00
parent 4f61c0d48c
commit 83cddadedc

View file

@ -141,18 +141,15 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu
use cssparser::serialize_string; use cssparser::serialize_string;
use std::fmt; use std::fmt;
use style_traits::ToCss; use style_traits::ToCss;
use values::computed::ComputedValueAsSpecified;
pub use self::computed_value::T as SpecifiedValue; pub use self::computed_value::T as SpecifiedValue;
pub mod computed_value { pub mod computed_value {
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub struct T(pub Vec<(String,String)>); #[derive(Clone, Debug, PartialEq, ToComputedValue)]
pub struct T(pub Vec<(String, String)>);
} }
impl ComputedValueAsSpecified for SpecifiedValue {}
impl ToCss for SpecifiedValue { impl ToCss for SpecifiedValue {
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 {
if self.0.is_empty() { if self.0.is_empty() {