mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move root_font_size to the device
This commit is contained in:
parent
af124f2d89
commit
ce2237e123
5 changed files with 53 additions and 24 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue