mirror of
https://github.com/servo/servo.git
synced 2025-10-07 20:19:21 +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
|
@ -54,10 +54,10 @@ impl UIEvent {
|
|||
Temporary::from_rooted(&*ev)
|
||||
}
|
||||
|
||||
pub fn Constructor(owner: &JSRef<Window>,
|
||||
pub fn Constructor(global: &JSRef<Window>,
|
||||
type_: DOMString,
|
||||
init: &UIEventBinding::UIEventInit) -> Fallible<Temporary<UIEvent>> {
|
||||
let event = UIEvent::new(owner, type_,
|
||||
let event = UIEvent::new(global, type_,
|
||||
init.parent.bubbles, init.parent.cancelable,
|
||||
init.view.root_ref(), init.detail);
|
||||
Ok(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue