mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -192,7 +192,7 @@ impl<'self> Element {
|
|||
let win = doc.with_base(|doc| doc.window.unwrap());
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ impl Element {
|
|||
ContentBoxesResponse(rects) => {
|
||||
let cx = page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cache = win.reflector();
|
||||
let scope = cache.get_wrapper();
|
||||
let scope = cache.get_jsobject();
|
||||
let rects = do rects.map |r| {
|
||||
ClientRect::new(
|
||||
r.origin.y.to_f32(),
|
||||
|
@ -316,7 +316,7 @@ impl Element {
|
|||
ContentBoxResponse(rect) => {
|
||||
let cx = page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cache = win.reflector();
|
||||
let scope = cache.get_wrapper();
|
||||
let scope = cache.get_jsobject();
|
||||
ClientRect::new(
|
||||
rect.origin.y.to_f32(),
|
||||
(rect.origin.y + rect.size.height).to_f32(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue