Rename {get,set}_wrapper to {get,set}_jsobject. v1

This commit is contained in:
Bobby Holley 2013-10-08 20:40:45 +02:00
parent 62ddac8b6f
commit 6bf740d967
12 changed files with 24 additions and 24 deletions

View file

@ -163,7 +163,7 @@ impl DerivedWrapper for AbstractDocument {
#[fixed_stack_segment]
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, vp: *mut JSVal) -> i32 {
let cache = self.reflector();
let wrapper = cache.get_wrapper();
let wrapper = cache.get_jsobject();
unsafe { *vp = RUST_OBJECT_TO_JSVAL(wrapper) };
return 1;
}
@ -230,7 +230,7 @@ impl Document {
let win = self.window.get_ref();
let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
let cache = win.reflector();
let scope = cache.get_wrapper();
let scope = cache.get_jsobject();
(scope, cx)
}