aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmldocument.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-04-11 10:30:08 +0200
committerMs2ger <Ms2ger@gmail.com>2016-04-11 10:30:08 +0200
commit3f95e4c8e13ac1253f662804229e3b37c85894b6 (patch)
tree8ea2bce2a10dd080c61061647669ad55af50e90d /components/script/dom/xmldocument.rs
parent0633ca4144dd7a7f64df5ac604156a2c6ff439be (diff)
downloadservo-3f95e4c8e13ac1253f662804229e3b37c85894b6.tar.gz
servo-3f95e4c8e13ac1253f662804229e3b37c85894b6.zip
Use upcast() in XMLDocument methods.
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r--components/script/dom/xmldocument.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs
index aff37638603..9d156682fa2 100644
--- a/components/script/dom/xmldocument.rs
+++ b/components/script/dom/xmldocument.rs
@@ -76,16 +76,16 @@ impl XMLDocument {
impl XMLDocumentMethods for XMLDocument {
// https://html.spec.whatwg.org/multipage/#dom-document-location
fn GetLocation(&self) -> Option<Root<Location>> {
- self.document.GetLocation()
+ self.upcast::<Document>().GetLocation()
}
// https://html.spec.whatwg.org/multipage/#dom-tree-accessors:supported-property-names
fn SupportedPropertyNames(&self) -> Vec<DOMString> {
- self.document.SupportedPropertyNames()
+ self.upcast::<Document>().SupportedPropertyNames()
}
// https://html.spec.whatwg.org/multipage/#dom-tree-accessors:dom-document-nameditem-filter
fn NamedGetter(&self, _cx: *mut JSContext, name: DOMString, found: &mut bool) -> *mut JSObject {
- self.document.NamedGetter(_cx, name, found)
+ self.upcast::<Document>().NamedGetter(_cx, name, found)
}
}