Move root_font_size to the device

This commit is contained in:
Manish Goregaokar 2017-05-25 11:56:47 -07:00
parent af124f2d89
commit ce2237e123
5 changed files with 53 additions and 24 deletions

View file

@ -112,7 +112,7 @@ impl FontRelativeLength {
let reference_font_size = base_size.resolve(context);
let root_font_size = context.style().root_font_size;
let root_font_size = context.device.root_font_size();
match *self {
FontRelativeLength::Em(length) => reference_font_size.scale_by(length),
FontRelativeLength::Ex(length) => {