mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Reduce code size of shorthand serialization
Differential Revision: https://phabricator.services.mozilla.com/D118835
This commit is contained in:
parent
58e9ee4d1e
commit
85b7a60a69
3 changed files with 39 additions and 40 deletions
|
@ -1197,7 +1197,7 @@ pub fn append_declaration_value<'a, 'b: 'a>(
|
|||
AppendableValue::Css(css) => dest.write_str(css),
|
||||
AppendableValue::Declaration(decl) => decl.to_css(dest),
|
||||
AppendableValue::DeclarationsForShorthand(shorthand, decls) => {
|
||||
shorthand.longhands_to_css(decls, &mut CssWriter::new(dest))
|
||||
shorthand.longhands_to_css(decls, dest)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue