Rename get_wrappercache() to reflector(). v1

I also updated some variable names in the codegen.
This commit is contained in:
Bobby Holley 2013-10-08 20:36:56 +02:00
parent 2cbe2d7ce9
commit 62ddac8b6f
30 changed files with 60 additions and 60 deletions

View file

@ -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 {