mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Shorthand serialization now takes iterators instead of array slice as argument
This commit is contained in:
parent
be2f70393f
commit
7d7aac212b
2 changed files with 63 additions and 37 deletions
|
@ -146,8 +146,8 @@ impl CSSStyleDeclarationMethods for CSSStyleDeclaration {
|
|||
}
|
||||
|
||||
// Step 2.3
|
||||
let list = list.iter().map(|x| &*x).collect::<Vec<_>>();
|
||||
let serialized_value = shorthand.serialize_shorthand_to_string(&list);
|
||||
let mut list = list.iter().map(|x| &*x);
|
||||
let serialized_value = shorthand.serialize_shorthand_to_string(&mut list);
|
||||
return DOMString::from(serialized_value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue