mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +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
|
@ -2601,7 +2601,8 @@ pub mod style_structs {
|
|||
|
||||
% for style_struct in data.active_style_structs():
|
||||
% if style_struct.name == "Font":
|
||||
#[derive(Clone, Debug, MallocSizeOf, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, MallocSizeOf)]
|
||||
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
|
||||
% else:
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq)]
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue