style: Simplify border-radius serialization.

Differential Revision: https://phabricator.services.mozilla.com/D20958
This commit is contained in:
Emilio Cobos Álvarez 2019-02-25 03:03:15 +00:00
parent e96a5ae37e
commit ebeb7b228f

View file

@ -145,11 +145,7 @@ where
W: Write,
{
widths.to_css(dest)?;
if widths.0 != heights.0 ||
widths.1 != heights.1 ||
widths.2 != heights.2 ||
widths.3 != heights.3
{
if widths != heights {
dest.write_str(" / ")?;
heights.to_css(dest)?;
}