Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-05-22 08:30:46 +02:00
parent 67f9b97735
commit 4f0e0c888c
4 changed files with 47 additions and 5 deletions

View file

@ -733,9 +733,9 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> {
hints.push(from_declaration(
shared_lock,
PropertyDeclaration::FontFamily(font_family::SpecifiedValue::Values(
computed::font::FontFamilyList::new(Box::new([
computed::font::SingleFontFamily::from_atom(font_family),
])),
computed::font::FontFamilyList {
list: Box::new([computed::font::SingleFontFamily::from_atom(font_family)]),
},
)),
));
}