mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue