mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +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
|
@ -222,8 +222,8 @@ impl Document {
|
|||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-document
|
||||
pub fn Constructor(owner: &JSRef<Window>) -> Fallible<Temporary<Document>> {
|
||||
Ok(Document::new(owner, None, NonHTMLDocument, None))
|
||||
pub fn Constructor(global: &JSRef<Window>) -> Fallible<Temporary<Document>> {
|
||||
Ok(Document::new(global, None, NonHTMLDocument, None))
|
||||
}
|
||||
|
||||
pub fn new(window: &JSRef<Window>, url: Option<Url>, doctype: IsHTMLDocument, content_type: Option<DOMString>) -> Temporary<Document> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue