Handle fallback to default variable font in case of nonexistant generic

This commit is contained in:
Manish Goregaokar 2017-04-21 16:10:50 -07:00 committed by Manish Goregaokar
parent 7fc01437f4
commit 03e9264ea0
3 changed files with 19 additions and 0 deletions

View file

@ -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,