mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Rename {get,set}_wrapper to {get,set}_jsobject. v1
This commit is contained in:
parent
62ddac8b6f
commit
6bf740d967
12 changed files with 24 additions and 24 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue