aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstyledeclaration.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-03-29 20:14:41 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-03-29 20:28:25 +0200
commit4f2b9a33feecbea0856fc5037405adb00574bc05 (patch)
treed9f7a3cf9cf535d1b0b972c006f3e84db5c0450b /components/script/dom/cssstyledeclaration.rs
parent3345b83fb370536a354ce82bb3493576f873d822 (diff)
downloadservo-4f2b9a33feecbea0856fc5037405adb00574bc05.tar.gz
servo-4f2b9a33feecbea0856fc5037405adb00574bc05.zip
Replace ParsedDeclaration::expand with non-generic method
... to reduce its code size impact. https://bugzilla.mozilla.org/show_bug.cgi?id=1351737
Diffstat (limited to 'components/script/dom/cssstyledeclaration.rs')
-rw-r--r--components/script/dom/cssstyledeclaration.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs
index d5d248f7880..384dfd4d412 100644
--- a/components/script/dom/cssstyledeclaration.rs
+++ b/components/script/dom/cssstyledeclaration.rs
@@ -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(())
})