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:
Simon Sapin 2017-03-29 20:14:41 +02:00
parent 3345b83fb3
commit 4f2b9a33fe
5 changed files with 70 additions and 36 deletions

View file

@ -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(())
})