aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 9d90a9fca07..6a6e112e679 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -1031,7 +1031,8 @@ impl Fragment {
let mut specified = Au(0);
if flags.contains(INTRINSIC_INLINE_SIZE_INCLUDES_SPECIFIED) {
- specified = MaybeAuto::from_style(style.content_inline_size(), Au(0)).specified_or_zero();
+ specified = MaybeAuto::from_style(style.content_inline_size(),
+ Au(0)).specified_or_zero();
specified = max(model::specified(style.min_inline_size(), Au(0)), specified);
if let Some(max) = model::specified_or_none(style.max_inline_size(), Au(0)) {
specified = min(specified, max)
@@ -1070,7 +1071,8 @@ impl Fragment {
pub fn calculate_line_height(&self, layout_context: &LayoutContext) -> Au {
let font_style = self.style.get_font_arc();
- let font_metrics = text::font_metrics_for_style(&mut layout_context.font_context(), font_style);
+ let font_metrics = text::font_metrics_for_style(&mut layout_context.font_context(),
+ font_style);
text::line_height_from_style(&*self.style, &font_metrics)
}