mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Rename variables that refer to global objects.
This clarifies whether those variables will point to a Window object or an arbitrary global object. Note in particular that all IDL Constructors will accept an arbitrary global object.
This commit is contained in:
parent
ab1a188e95
commit
f963ed99ac
21 changed files with 95 additions and 92 deletions
|
@ -373,10 +373,10 @@ pub trait Reflectable {
|
|||
|
||||
pub fn reflect_dom_object<T: Reflectable>
|
||||
(obj: Box<T>,
|
||||
window: &JSRef<window::Window>,
|
||||
global: &JSRef<window::Window>,
|
||||
wrap_fn: extern "Rust" fn(*mut JSContext, &JSRef<window::Window>, Box<T>) -> Temporary<T>)
|
||||
-> Temporary<T> {
|
||||
wrap_fn(window.get_cx(), window, obj)
|
||||
wrap_fn(global.get_cx(), global, obj)
|
||||
}
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue