style: Reduce code size of shorthand serialization

Differential Revision: https://phabricator.services.mozilla.com/D118835
This commit is contained in:
Emilio Cobos Álvarez 2023-05-22 10:00:33 +02:00 committed by Oriol Brufau
parent 58e9ee4d1e
commit 85b7a60a69
3 changed files with 39 additions and 40 deletions

View file

@ -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)
},
}
}