mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Handle fallback to default variable font in case of nonexistant generic
This commit is contained in:
parent
7fc01437f4
commit
03e9264ea0
3 changed files with 19 additions and 0 deletions
|
@ -2609,7 +2609,11 @@ pub fn apply_declarations<'a, F, I>(device: &Device,
|
|||
&mut cacheable,
|
||||
&mut cascade_info,
|
||||
error_reporter);
|
||||
% if product == "gecko":
|
||||
context.style.mutate_font().fixup_none_generic(context.device);
|
||||
% endif
|
||||
}
|
||||
|
||||
if let Some(declaration) = font_size {
|
||||
let discriminant = LonghandId::FontSize as usize;
|
||||
(CASCADE_PROPERTY[discriminant])(declaration,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue