mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
changed to use globalscope origin
This commit is contained in:
parent
3577d1ff94
commit
aa7b4f6162
5 changed files with 19 additions and 21 deletions
|
@ -2597,6 +2597,7 @@ class CGWrapGlobalMethod(CGAbstractMethod):
|
|||
values["members"] = "\n".join(members)
|
||||
|
||||
return CGGeneric("""\
|
||||
let origin = object.origin().clone();
|
||||
let raw = Box::into_raw(object);
|
||||
let _rt = RootedTraceable::new(&*raw);
|
||||
|
||||
|
@ -2606,7 +2607,8 @@ create_global_object(
|
|||
&Class.base,
|
||||
raw as *const libc::c_void,
|
||||
_trace,
|
||||
obj.handle_mut());
|
||||
obj.handle_mut(),
|
||||
&origin);
|
||||
assert!(!obj.is_null());
|
||||
|
||||
(*raw).init_reflector(obj.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue