diff options
author | shubham_jain <shubhamkjain@outlook.com> | 2016-03-29 11:33:25 +0530 |
---|---|---|
committer | shubham_jain <shubhamkjain@outlook.com> | 2016-04-09 22:54:07 +0530 |
commit | 6626c5cfd492239aa716438a3b9d6b2e94999956 (patch) | |
tree | e10bc23b3a08299bf3e4c1dc08ec7fbaae0c97ec /components/script/dom/xmldocument.rs | |
parent | 32e53b80e28731cd05ddbe561f99e9570a34ff07 (diff) | |
download | servo-6626c5cfd492239aa716438a3b9d6b2e94999956.tar.gz servo-6626c5cfd492239aa716438a3b9d6b2e94999956.zip |
issue #10141 : Document::location set null for documents without a browsing context. r=Ms2ger
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 6fc1ebfd267..8f614a0442c 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -76,8 +76,8 @@ impl XMLDocument { impl XMLDocumentMethods for XMLDocument { // https://html.spec.whatwg.org/multipage/#dom-document-location - fn Location(&self) -> Root<Location> { - self.document.Location() + fn GetLocation(&self) -> Option<Root<Location>> { + self.document.GetLocation() } // https://html.spec.whatwg.org/multipage/#dom-tree-accessors:supported-property-names |