aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmldocument.rs
diff options
context:
space:
mode:
authorshubham_jain <shubhamkjain@outlook.com>2016-03-29 11:33:25 +0530
committershubham_jain <shubhamkjain@outlook.com>2016-04-09 22:54:07 +0530
commit6626c5cfd492239aa716438a3b9d6b2e94999956 (patch)
treee10bc23b3a08299bf3e4c1dc08ec7fbaae0c97ec /components/script/dom/xmldocument.rs
parent32e53b80e28731cd05ddbe561f99e9570a34ff07 (diff)
downloadservo-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.rs4
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