mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Move CSS line-height property from InheritedBox to InheritedText
This commit is contained in:
parent
bbc5c51be8
commit
d8222dd63d
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue