From d8222dd63d9a575a7a860d7c1015485317d0d1dc Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Tue, 5 Apr 2016 00:00:32 -0300 Subject: Move CSS line-height property from InheritedBox to InheritedText --- components/layout/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/layout/text.rs') diff --git a/components/layout/text.rs b/components/layout/text.rs index 30ce9f4bb41..0fb9e7cde05 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -417,7 +417,7 @@ pub fn font_metrics_for_style(font_context: &mut FontContext, font_style: Arc Au { let font_size = style.get_font().font_size; - match style.get_inheritedbox().line_height { + match style.get_inheritedtext().line_height { line_height::T::Normal => metrics.line_gap, line_height::T::Number(l) => font_size.scale_by(l), line_height::T::Length(l) => l -- cgit v1.2.3