diff options
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r-- | src/components/script/dom/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index cf98ed190df..476263cf4b0 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -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| { |