mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cleanup NodeList bindings.
This commit is contained in:
parent
d2b57ba7c1
commit
5ee3bc7450
2 changed files with 27 additions and 30 deletions
|
@ -664,8 +664,8 @@ impl Node<ScriptView> {
|
|||
pub fn ChildNodes(&mut self, abstract_self: AbstractNode<ScriptView>) -> @mut NodeList {
|
||||
match self.child_list {
|
||||
None => {
|
||||
let (scope, cx) = self.get_scope_and_cx();
|
||||
let list = NodeList::new_child_list(abstract_self, cx, scope);
|
||||
let window = self.owner_doc().document().window;
|
||||
let list = NodeList::new_child_list(window, abstract_self);
|
||||
self.child_list = Some(list);
|
||||
list
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue