mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Updated reflect_dom_object to be passed by value
This commit is contained in:
parent
9cea3ce266
commit
2cbf5a3671
51 changed files with 75 additions and 75 deletions
|
@ -34,7 +34,7 @@ impl NodeList {
|
|||
pub fn new(window: JSRef<Window>,
|
||||
list_type: NodeListType) -> Temporary<NodeList> {
|
||||
reflect_dom_object(box NodeList::new_inherited(list_type),
|
||||
&global::Window(window), NodeListBinding::Wrap)
|
||||
global::Window(window), NodeListBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn new_simple_list(window: JSRef<Window>, elements: Vec<JSRef<Node>>) -> Temporary<NodeList> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue