mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
stylo: Handle text-zoom for line-height
This commit is contained in:
parent
613012d9fb
commit
fb107d8cd5
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ impl ToComputedValue for LineHeight {
|
|||
GenericLineHeight::Number(number.to_computed_value(context))
|
||||
},
|
||||
GenericLineHeight::Length(LengthOrPercentage::Length(ref length)) => {
|
||||
GenericLineHeight::Length(length.to_computed_value(context))
|
||||
GenericLineHeight::Length(context.maybe_zoom_text(length.to_computed_value(context)))
|
||||
},
|
||||
GenericLineHeight::Length(LengthOrPercentage::Percentage(p)) => {
|
||||
let font_relative_length =
|
||||
|
@ -103,7 +103,7 @@ impl ToComputedValue for LineHeight {
|
|||
GenericLineHeight::Length(font_relative_length.to_computed_value(context))
|
||||
},
|
||||
GenericLineHeight::Length(LengthOrPercentage::Calc(ref calc)) => {
|
||||
let computed_calc = calc.to_computed_value(context);
|
||||
let computed_calc = calc.to_computed_value_zoomed(context);
|
||||
let font_relative_length =
|
||||
Length::NoCalc(NoCalcLength::FontRelative(FontRelativeLength::Em(computed_calc.percentage())));
|
||||
let absolute_length = computed_calc.unclamped_length();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue