style: Derive ToComputedValue for font-variant-caps.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-09 13:08:10 +02:00
parent c87b485fa6
commit 9788ffe3e4
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1175,15 +1175,12 @@ ${helpers.single_keyword_system("font-variant-caps",
spec="https://drafts.csswg.org/css-fonts/#propdef-font-synthesis"> spec="https://drafts.csswg.org/css-fonts/#propdef-font-synthesis">
use std::fmt; use std::fmt;
use style_traits::ToCss; use style_traits::ToCss;
use values::computed::ComputedValueAsSpecified;
impl ComputedValueAsSpecified for SpecifiedValue {}
pub mod computed_value { pub mod computed_value {
pub use super::SpecifiedValue as T; pub use super::SpecifiedValue as T;
} }
#[derive(Clone, Debug, PartialEq)] #[derive(Clone, Debug, PartialEq, ToComputedValue)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub struct SpecifiedValue { pub struct SpecifiedValue {
pub weight: bool, pub weight: bool,