mirror of
https://github.com/servo/servo.git
synced 2025-10-16 16:29:18 +01:00
style: Rustfmt servo/. r=zrhoffman
$ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
This commit is contained in:
parent
68cbe6833d
commit
ad72081ac8
70 changed files with 665 additions and 448 deletions
|
@ -125,7 +125,12 @@ impl ToResolvedValue for LineHeight {
|
|||
}
|
||||
let wm = context.style.writing_mode;
|
||||
let vertical = wm.is_vertical() && !wm.is_sideways();
|
||||
return Self::Length(context.device.calc_line_height(&self, vertical, context.style.get_font(), Some(context.element_info.element)));
|
||||
return Self::Length(context.device.calc_line_height(
|
||||
&self,
|
||||
vertical,
|
||||
context.style.get_font(),
|
||||
Some(context.element_info.element),
|
||||
));
|
||||
}
|
||||
if let LineHeight::Number(num) = &self {
|
||||
let size = context.style.get_font().clone_font_size().computed_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue