diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-11 14:13:48 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-11 14:13:48 +0530 |
commit | 5adf36231e739f57dc7d1d85b37fb2a47b8f5d74 (patch) | |
tree | 8ea2bce2a10dd080c61061647669ad55af50e90d /components/script/dom/xmldocument.rs | |
parent | 5aa62b3621f4793c559f6c7eb77e06259b0a00ea (diff) | |
parent | 3f95e4c8e13ac1253f662804229e3b37c85894b6 (diff) | |
download | servo-5adf36231e739f57dc7d1d85b37fb2a47b8f5d74.tar.gz servo-5adf36231e739f57dc7d1d85b37fb2a47b8f5d74.zip |
Auto merge of #10516 - Ms2ger:cleanup, r=nox
Various cleanup.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10516)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 8f614a0442c..9d156682fa2 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -4,7 +4,6 @@ use document_loader::DocumentLoader; use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods; -use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; use dom::bindings::codegen::Bindings::XMLDocumentBinding::{self, XMLDocumentMethods}; use dom::bindings::global::GlobalRef; use dom::bindings::inheritance::Castable; @@ -77,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) } } |