mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Remove Temporary::new()
Temporary::from_rooted() now takes an Assignable value.
This commit is contained in:
parent
2770886196
commit
1a30925cad
19 changed files with 45 additions and 48 deletions
|
@ -194,7 +194,7 @@ impl<'a> HTMLCollectionMethods for JSRef<'a, HTMLCollection> {
|
|||
match self.collection {
|
||||
CollectionTypeId::Static(ref elems) => elems
|
||||
.get(index)
|
||||
.map(|elem| Temporary::new(elem.clone())),
|
||||
.map(|elem| Temporary::from_rooted(elem.clone())),
|
||||
CollectionTypeId::Live(ref root, ref filter) => {
|
||||
let root = root.root();
|
||||
HTMLCollection::traverse(root.r())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue