mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace ParsedDeclaration::expand with non-generic method
... to reduce its code size impact. https://bugzilla.mozilla.org/show_bug.cgi?id=1351737
This commit is contained in:
parent
3345b83fb3
commit
4f2b9a33fe
5 changed files with 70 additions and 36 deletions
|
@ -272,10 +272,7 @@ impl CSSStyleDeclaration {
|
|||
|
||||
// Step 8
|
||||
// Step 9
|
||||
*changed = false;
|
||||
parsed.expand(|declaration| {
|
||||
*changed |= pdb.set_parsed_declaration(declaration, importance);
|
||||
});
|
||||
*changed = parsed.expand_set_into(pdb, importance);
|
||||
|
||||
Ok(())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue