mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Replace some more uses of write!
in components/style
This commit is contained in:
parent
fae2da0f59
commit
5d06c9959f
12 changed files with 33 additions and 28 deletions
|
@ -398,7 +398,9 @@ impl MediaExpressionValue {
|
|||
dest.write_str(if v { "1" } else { "0" })
|
||||
},
|
||||
MediaExpressionValue::IntRatio(a, b) => {
|
||||
write!(dest, "{}/{}", a, b)
|
||||
a.to_css(dest)?;
|
||||
dest.write_char('/')?;
|
||||
b.to_css(dest)
|
||||
},
|
||||
MediaExpressionValue::Resolution(ref r) => r.to_css(dest),
|
||||
MediaExpressionValue::Ident(ref ident) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue