mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Rename get_wrappercache() to reflector(). v1
I also updated some variable names in the codegen.
This commit is contained in:
parent
2cbe2d7ce9
commit
62ddac8b6f
30 changed files with 60 additions and 60 deletions
|
@ -36,7 +36,7 @@ impl HTMLDocument {
|
|||
fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
|
||||
let win = self.parent.window.get_ref();
|
||||
let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cache = win.get_wrappercache();
|
||||
let cache = win.reflector();
|
||||
let scope = cache.get_wrapper();
|
||||
(scope, cx)
|
||||
}
|
||||
|
@ -201,8 +201,8 @@ impl HTMLDocument {
|
|||
}
|
||||
|
||||
impl Reflectable for HTMLDocument {
|
||||
fn get_wrappercache(&mut self) -> &mut Reflector {
|
||||
self.parent.get_wrappercache()
|
||||
fn reflector(&mut self) -> &mut Reflector {
|
||||
self.parent.reflector()
|
||||
}
|
||||
|
||||
fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue