mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Derive Serialize and Deserialize traits for font styles for #[cfg_attr(feature = "servo")]
This commit is contained in:
parent
6c86429082
commit
8372cf1bd8
5 changed files with 8 additions and 23 deletions
|
@ -496,9 +496,8 @@ impl ToComputedValue for FontStretch {
|
|||
ToCss,
|
||||
ToResolvedValue,
|
||||
ToShmem,
|
||||
Serialize,
|
||||
Deserialize,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
|
||||
#[allow(missing_docs)]
|
||||
pub enum KeywordSize {
|
||||
#[css(keyword = "xx-small")]
|
||||
|
@ -542,9 +541,8 @@ impl Default for KeywordSize {
|
|||
ToCss,
|
||||
ToResolvedValue,
|
||||
ToShmem,
|
||||
Serialize,
|
||||
Deserialize,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
|
||||
/// Additional information for keyword-derived font sizes.
|
||||
pub struct KeywordInfo {
|
||||
/// The keyword used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue