mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -225,9 +225,9 @@ impl Window {
|
|||
};
|
||||
|
||||
unsafe {
|
||||
let cache = ptr::to_unsafe_ptr(win.reflector());
|
||||
let reflector = ptr::to_unsafe_ptr(win.reflector());
|
||||
win.wrap_object_shared(cx, ptr::null()); //XXXjdm proper scope
|
||||
let global = (*cache).wrapper;
|
||||
let global = (*reflector).wrapper;
|
||||
do "window".to_c_str().with_ref |name| {
|
||||
JS_DefineProperty(cx, global, name,
|
||||
RUST_OBJECT_TO_JSVAL(global),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue