mirror of
https://github.com/servo/servo.git
synced 2025-06-15 11:54:28 +00:00
Get the Page directly off the Window in CreateBindingJSObject.
This commit is contained in:
parent
787108deaf
commit
d3ca4afaf5
1 changed files with 1 additions and 2 deletions
|
@ -2569,8 +2569,7 @@ def CreateBindingJSObject(descriptor, parent=None):
|
|||
if descriptor.proxy:
|
||||
assert not descriptor.createGlobal
|
||||
handler = """
|
||||
let page = page_from_context(aCx);
|
||||
let mut js_info = (*page).js_info();
|
||||
let js_info = aScope.get().page().js_info();
|
||||
let handler = js_info.get().get_ref().dom_static.proxy_handlers.get(&(PrototypeList::id::%s as uint));
|
||||
""" % descriptor.name
|
||||
create += handler + """ let obj = NewProxyObject(aCx, *handler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue