mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
stylo: Don't call fixup_generic_font for system or CSS wide specified fonts
This commit is contained in:
parent
3ed6c22e45
commit
69070c7592
2 changed files with 14 additions and 1 deletions
|
@ -3297,7 +3297,13 @@ where
|
|||
&mut cascade_info);
|
||||
% if product == "gecko":
|
||||
let device = context.builder.device;
|
||||
context.builder.mutate_font().fixup_none_generic(device);
|
||||
if let PropertyDeclaration::FontFamily(ref val) = **declaration {
|
||||
if val.get_system().is_some() {
|
||||
context.builder.mutate_font().fixup_system();
|
||||
} else {
|
||||
context.builder.mutate_font().fixup_none_generic(device);
|
||||
}
|
||||
}
|
||||
% endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue