mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
style: Derive ToComputedValue for font-variant-caps.
This commit is contained in:
parent
c87b485fa6
commit
9788ffe3e4
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue