mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Do not use CVAS for the quotes property
This commit is contained in:
parent
4f61c0d48c
commit
83cddadedc
1 changed files with 2 additions and 5 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue