diff options
author | David Raifaizen <d-raif@hotmail.com> | 2016-04-24 01:43:59 -0400 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-05-25 09:25:35 +0200 |
commit | 3dafd558c529fb24bc51c2cb5ac16c532bdaa0af (patch) | |
tree | a374931e4de2f8d86e178806528a0eccdf6bc564 /components/script/dom/cssstyledeclaration.rs | |
parent | f38607967e080e4feb2c4400edc6a258493f725d (diff) | |
download | servo-3dafd558c529fb24bc51c2cb5ac16c532bdaa0af.tar.gz servo-3dafd558c529fb24bc51c2cb5ac16c532bdaa0af.zip |
Changing update_inline_style to process multiple declarations at once to handle shorthand serialization better
Diffstat (limited to 'components/script/dom/cssstyledeclaration.rs')
-rw-r--r-- | components/script/dom/cssstyledeclaration.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs index 410c7757f5b..7b0c62dabd5 100644 --- a/components/script/dom/cssstyledeclaration.rs +++ b/components/script/dom/cssstyledeclaration.rs @@ -157,7 +157,9 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { self.0.next().map(|r| &**r) } } - let serialized_value = shorthand.serialize_shorthand_to_string(Map(list.iter())); + + // TODO: important is hardcoded to false because method does not implement it yet + let serialized_value = shorthand.serialize_shorthand_value_to_string(Map(list.iter()), false); return DOMString::from(serialized_value); } @@ -241,10 +243,8 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration { let element = self.owner.upcast::<Element>(); // Step 8 - for decl in declarations { - // Step 9 - element.update_inline_style(decl, priority); - } + // Step 9 + element.update_inline_style(declarations, priority); Ok(()) } |