mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove JS::from_rooted
This commit is contained in:
parent
134fd18767
commit
b45f1918d1
14 changed files with 24 additions and 33 deletions
|
@ -143,7 +143,7 @@ impl HTMLTableElementMethods for HTMLTableElement {
|
|||
sections: self.upcast::<Node>()
|
||||
.children()
|
||||
.filter_map(|ref node|
|
||||
node.downcast::<HTMLTableSectionElement>().map(|_| JS::from_rooted(node)))
|
||||
node.downcast::<HTMLTableSectionElement>().map(|_| JS::from_ref(&**node)))
|
||||
.collect()
|
||||
};
|
||||
HTMLCollection::new(window_from_node(self).r(), self.upcast(), box filter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue