mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -2970,7 +2970,7 @@ pub extern "C" fn Servo_DeclarationBlock_SetFontFamily(declarations:
|
|||
let result = FontFamily::parse(&mut parser);
|
||||
if let Ok(family) = result {
|
||||
if parser.is_exhausted() {
|
||||
let decl = PropertyDeclaration::FontFamily(Box::new(family));
|
||||
let decl = PropertyDeclaration::FontFamily(family);
|
||||
write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| {
|
||||
decls.push(decl, Importance::Normal);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue