Skip to content

Commit

Permalink
style: Fix FontFamilyList definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jun 18, 2020
1 parent 1f797ca commit 56283a3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions components/style/values/computed/font.rs
Expand Up @@ -477,10 +477,20 @@ impl From<&SingleFontFamily> for FontKitFamilyName {
}
}

#[cfg(feature = "servo")]
#[derive(
Clone, Debug, Eq, Hash, MallocSizeOf, PartialEq, ToComputedValue, ToResolvedValue, ToShmem,
Clone,
Debug,
Deserialize,
Eq,
Hash,
MallocSizeOf,
PartialEq,
Serialize,
ToComputedValue,
ToResolvedValue,
ToShmem,
)]
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
/// A list of SingleFontFamily
pub struct FontFamilyList(Box<[SingleFontFamily]>);

Expand Down

0 comments on commit 56283a3

Please sign in to comment.