mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix(script): apply some of the changes requested in the review comments of #16501
This commit is contained in:
parent
2f3a14b491
commit
e786627199
2 changed files with 3 additions and 3 deletions
|
@ -2911,8 +2911,8 @@ class CGWrapGlobalMethod(CGAbstractMethod):
|
|||
values["members"] = "\n".join(members)
|
||||
|
||||
return CGGeneric("""\
|
||||
let origin = object.origin().clone();
|
||||
let raw = Root::new(MaybeUnreflectedDom::from_box(object));
|
||||
let origin = (*raw.as_ptr()).origin(); // `MutableOrigin` or `&MutableOrigin`
|
||||
|
||||
rooted!(in(*cx) let mut obj = ptr::null_mut::<JSObject>());
|
||||
create_global_object(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue