style: Use a SharedFontList object to store font-family values for Gecko.

This commit is contained in:
Cameron McCormack 2017-09-29 17:43:22 +08:00
parent c0f404999c
commit 4d9dd4b757
6 changed files with 242 additions and 89 deletions

View file

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