aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-05-22 08:30:46 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-24 18:32:36 +0200
commit4f0e0c888c49a908e95406d20258fa7f0fd4d2a2 (patch)
tree93c3144c8496342e744ab694a84d7d916128acf3 /components/script/dom/element.rs
parent67f9b97735e8e83789c88ae3c4657f40fdc056c2 (diff)
downloadservo-4f0e0c888c49a908e95406d20258fa7f0fd4d2a2.tar.gz
servo-4f0e0c888c49a908e95406d20258fa7f0fd4d2a2.zip
Further changes required by Servo
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r--components/script/dom/element.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index d8b80df754a..1ceec50281d 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -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)]),
+ },
)),
));
}