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:
Emilio Cobos Álvarez 2023-01-02 02:29:30 +00:00 committed by Martin Robinson
parent d30400d3ea
commit 18b9e1b615
11 changed files with 64 additions and 39 deletions

View file

@ -58,7 +58,7 @@ impl specified::NoCalcLength {
length.to_computed_value(context)
},
specified::NoCalcLength::ServoCharacterWidth(length) => {
length.to_computed_value(context.style().get_font().clone_font_size().size())
length.to_computed_value(context.style().get_font().clone_font_size().computed_size())
},
}
}