From 3f95e4c8e13ac1253f662804229e3b37c85894b6 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 11 Apr 2016 10:30:08 +0200 Subject: Use upcast() in XMLDocument methods. --- components/script/dom/xmldocument.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom') 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> { - self.document.GetLocation() + self.upcast::().GetLocation() } // https://html.spec.whatwg.org/multipage/#dom-tree-accessors:supported-property-names fn SupportedPropertyNames(&self) -> Vec { - self.document.SupportedPropertyNames() + self.upcast::().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::().NamedGetter(_cx, name, found) } } -- cgit v1.2.3