diff options
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r-- | src/components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 7bb394d3755..b93eb730771 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -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> { |