aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/incremental.rs2
-rw-r--r--components/layout/text.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/incremental.rs b/components/layout/incremental.rs
index 3a8fc385dd4..1544a39f427 100644
--- a/components/layout/incremental.rs
+++ b/components/layout/incremental.rs
@@ -202,7 +202,7 @@ pub fn compute_damage(old: Option<&Arc<ServoComputedValues>>, new: &ServoCompute
get_padding.padding_top, get_padding.padding_right,
get_padding.padding_bottom, get_padding.padding_left,
get_box.width, get_box.height,
- get_inheritedbox.line_height,
+ get_inheritedtext.line_height,
get_inheritedtext.text_align, get_inheritedtext.text_indent,
get_table.table_layout,
get_inheritedtable.border_collapse,
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