mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Rename some local variables and shorten some lines.
This was done manually, and might benefit from a more careful review.
This commit is contained in:
parent
622aa76515
commit
549ac6a29b
11 changed files with 25 additions and 40 deletions
|
@ -36,8 +36,7 @@ impl HTMLDocument {
|
|||
fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
|
||||
let win = self.parent.window.get_ref();
|
||||
let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cache = win.reflector();
|
||||
let scope = cache.get_jsobject();
|
||||
let scope = win.reflector().get_jsobject();
|
||||
(scope, cx)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue