aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmldocument.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-10-11 07:51:59 -0700
committerbors-servo <release+servo@mozilla.com>2013-10-11 07:51:59 -0700
commitfc9fdf30a6b4b4437cfe7a624c52c9a8b5e5a645 (patch)
tree81e44e4c34830ca94d5dd7d21f4e5e19f85f43ad /src/components/script/dom/htmldocument.rs
parentbc3eeb6f1c1b643df72b787ef772f20bcc094856 (diff)
parent9fe9145be4386ae38facc029946678fb0a54c2f7 (diff)
downloadservo-fc9fdf30a6b4b4437cfe7a624c52c9a8b5e5a645.tar.gz
servo-fc9fdf30a6b4b4437cfe7a624c52c9a8b5e5a645.zip
auto merge of #1018 : ttaubert/servo/nodelist, r=jdm
This should fix #652 and #775. I'm not sure if that's all that is needed to properly implement NodeList? Should we add tests somewhere? Sorry for any stupid stuff I might have done :) r? @jdm
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r--src/components/script/dom/htmldocument.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs
index b81b4886aff..5d9641d81a0 100644
--- a/src/components/script/dom/htmldocument.rs
+++ b/src/components/script/dom/htmldocument.rs
@@ -32,13 +32,6 @@ impl HTMLDocument {
let compartment = window.get_ref().page.js_info.get_ref().js_compartment;
AbstractDocument::as_abstract(compartment.cx.ptr, doc)
}
-
- fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
- let win = self.parent.window.get_ref();
- let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
- let scope = win.reflector().get_jsobject();
- (scope, cx)
- }
}
impl ReflectableDocument for HTMLDocument {