style: Move font-family outside of mako

This commit is contained in:
CYBAI 2017-11-25 02:44:26 +08:00
parent 7ac376eed6
commit a470ebd501
14 changed files with 595 additions and 569 deletions

View file

@ -587,9 +587,9 @@ impl LayoutElementHelpers for LayoutDom<Element> {
shared_lock,
PropertyDeclaration::FontFamily(
font_family::SpecifiedValue::Values(
font_family::computed_value::FontFamilyList::new(vec![
font_family::computed_value::FontFamily::from_atom(
font_family)])))));
computed::font::FontFamilyList::new(Box::new([
computed::font::SingleFontFamily::from_atom(
font_family)]))))));
}
let font_size = self.downcast::<HTMLFontElement>().and_then(|this| this.get_size());