layout: Minor stylistic cleanup.

This commit is contained in:
Patrick Walton 2015-04-14 12:22:18 -07:00
parent acd08c67c6
commit 82fcbf7870
4 changed files with 74 additions and 43 deletions

View file

@ -4704,7 +4704,11 @@ impl ComputedValues {
#[inline]
pub fn content_inline_size(&self) -> computed::LengthOrPercentageOrAuto {
let box_style = self.get_box();
if self.writing_mode.is_vertical() { box_style.height } else { box_style.width }
if self.writing_mode.is_vertical() {
box_style.height
} else {
box_style.width
}
}
#[inline]