mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
style: Use a SharedFontList object to store font-family values for Gecko.
This commit is contained in:
parent
c0f404999c
commit
4d9dd4b757
6 changed files with 242 additions and 89 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue