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

@ -136,7 +136,7 @@ impl Window {
}
impl Reflectable for Window {
fn get_wrappercache(&mut self) -> &mut Reflector {
fn reflector(&mut self) -> &mut Reflector {
unsafe { cast::transmute(&self.wrapper) }
}
@ -225,7 +225,7 @@ impl Window {
};
unsafe {
let cache = ptr::to_unsafe_ptr(win.get_wrappercache());
let cache = ptr::to_unsafe_ptr(win.reflector());
win.wrap_object_shared(cx, ptr::null()); //XXXjdm proper scope
let global = (*cache).wrapper;
do "window".to_c_str().with_ref |name| {