mirror of
https://github.com/servo/servo.git
synced 2025-06-17 04:44:28 +00:00
Rename {get,set}_wrapper to {get,set}_jsobject. v1
This commit is contained in:
parent
62ddac8b6f
commit
6bf740d967
12 changed files with 24 additions and 24 deletions
|
@ -2525,7 +2525,7 @@ class CGWrapWithCacheMethod(CGAbstractMethod):
|
|||
|
||||
//NS_ADDREF(aObject);
|
||||
|
||||
(*reflector).set_wrapper(obj);
|
||||
(*reflector).set_jsobject(obj);
|
||||
|
||||
return obj;""" % (CreateBindingJSObject(self.descriptor, "parent"))
|
||||
else:
|
||||
|
@ -2533,7 +2533,7 @@ class CGWrapWithCacheMethod(CGAbstractMethod):
|
|||
%s
|
||||
let proto = GetProtoObject(aCx, obj, obj);
|
||||
JS_SetPrototype(aCx, obj, proto);
|
||||
(*reflector).set_wrapper(obj);
|
||||
(*reflector).set_jsobject(obj);
|
||||
return obj;""" % CreateBindingJSObject(self.descriptor)
|
||||
|
||||
class CGWrapMethod(CGAbstractMethod):
|
||||
|
@ -4077,7 +4077,7 @@ class CGClassConstructHook(CGAbstractExternMethod):
|
|||
// from the context for now.
|
||||
let page = page_from_context(cx);
|
||||
let global = (*page).frame.get_ref().window;
|
||||
let obj = global.reflector().get_wrapper();
|
||||
let obj = global.reflector().get_jsobject();
|
||||
"""
|
||||
preArgs = ["global"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue