mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Use used, rather than computed font-size for font-metric dependent units
Differential Revision: https://phabricator.services.mozilla.com/D165737
This commit is contained in:
parent
d30400d3ea
commit
18b9e1b615
11 changed files with 64 additions and 39 deletions
|
@ -924,7 +924,7 @@ pub trait MatchMethods: TElement {
|
|||
if is_root {
|
||||
let device = context.shared.stylist.device();
|
||||
debug_assert!(self.owner_doc_matches_for_testing(device));
|
||||
device.set_root_font_size(new_font_size.size().into());
|
||||
device.set_root_font_size(new_font_size.computed_size().into());
|
||||
if device.used_root_font_size() {
|
||||
// If the root font-size changed since last time, and something
|
||||
// in the document did use rem units, ensure we recascade the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue