mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Further changes required by Servo
This commit is contained in:
parent
18b9e1b615
commit
7ce706f891
7 changed files with 13 additions and 9 deletions
|
@ -1886,7 +1886,7 @@ struct TextRunLineItem {
|
|||
}
|
||||
|
||||
fn line_height(parent_style: &ComputedValues, font_metrics: &FontMetrics) -> Length {
|
||||
let font_size = parent_style.get_font().font_size.size.0;
|
||||
let font_size = parent_style.get_font().font_size.computed_size();
|
||||
match parent_style.get_inherited_text().line_height {
|
||||
LineHeight::Normal => font_metrics.line_gap,
|
||||
LineHeight::Number(number) => font_size * number.0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue