mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
GlobalRef passed by value in reflect_dom_object, reflect_node #4165
This commit is contained in:
parent
661144d285
commit
582ba9d796
3 changed files with 4 additions and 4 deletions
|
@ -1157,7 +1157,7 @@ impl Node {
|
|||
pub fn reflect_node<N: Reflectable+NodeBase>
|
||||
(node: Box<N>,
|
||||
document: JSRef<Document>,
|
||||
wrap_fn: extern "Rust" fn(*mut JSContext, &GlobalRef, Box<N>) -> Temporary<N>)
|
||||
wrap_fn: extern "Rust" fn(*mut JSContext, GlobalRef, Box<N>) -> Temporary<N>)
|
||||
-> Temporary<N> {
|
||||
let window = document.window().root();
|
||||
reflect_dom_object(node, GlobalRef::Window(*window), wrap_fn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue