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
|
@ -22,9 +22,9 @@ impl XMLHttpRequestUpload {
|
|||
eventtarget:XMLHttpRequestEventTarget::new_inherited(XMLHttpRequestUploadTypeId)
|
||||
}
|
||||
}
|
||||
pub fn new(window: &JSRef<Window>) -> Temporary<XMLHttpRequestUpload> {
|
||||
pub fn new(global: &JSRef<Window>) -> Temporary<XMLHttpRequestUpload> {
|
||||
reflect_dom_object(box XMLHttpRequestUpload::new_inherited(),
|
||||
window,
|
||||
global,
|
||||
XMLHttpRequestUploadBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue