mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +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
|
@ -382,10 +382,12 @@ pub mod system_font {
|
|||
);
|
||||
&mut *system.as_mut_ptr()
|
||||
};
|
||||
let size = NonNegative(cx.maybe_zoom_text(system.size.0));
|
||||
let ret = ComputedSystemFont {
|
||||
font_family: system.family.clone(),
|
||||
font_size: FontSize {
|
||||
size: NonNegative(cx.maybe_zoom_text(system.size.0)),
|
||||
computed_size: size,
|
||||
used_size: size,
|
||||
keyword_info: KeywordInfo::none()
|
||||
},
|
||||
font_weight: system.weight,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue