stylo: Compute font-size calcs against appropriate base size

This commit is contained in:
Manish Goregaokar 2017-08-29 13:18:24 -07:00 committed by Manish Goregaokar
parent 09df9c4316
commit 343eb23187
4 changed files with 10 additions and 7 deletions

View file

@ -112,7 +112,7 @@ impl ToComputedValue for LineHeight {
).into()
}
LengthOrPercentage::Calc(ref calc) => {
let computed_calc = calc.to_computed_value_zoomed(context);
let computed_calc = calc.to_computed_value_zoomed(context, FontBaseSize::CurrentStyle);
let font_relative_length =
FontRelativeLength::Em(computed_calc.percentage())
.to_computed_value(