aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/text.rs
diff options
context:
space:
mode:
authorMauricio Collares <mau@ric.io>2016-04-05 00:00:32 -0300
committerMauricio Collares <mau@ric.io>2016-04-05 00:28:18 -0300
commitd8222dd63d9a575a7a860d7c1015485317d0d1dc (patch)
tree25f6fae835149f871fcaf966179119fc1359a40b /components/layout/text.rs
parentbbc5c51be89143f12b1693922c7d9892a51009c1 (diff)
downloadservo-d8222dd63d9a575a7a860d7c1015485317d0d1dc.tar.gz
servo-d8222dd63d9a575a7a860d7c1015485317d0d1dc.zip
Move CSS line-height property from InheritedBox to InheritedText
Diffstat (limited to 'components/layout/text.rs')
-rw-r--r--components/layout/text.rs2
1 files changed, 1 insertions, 1 deletions
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<Fo
/// Returns the line block-size needed by the given computed style and font size.
pub fn line_height_from_style(style: &ServoComputedValues, metrics: &FontMetrics) -> 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