aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r--src/components/script/dom/htmlcollection.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs
index 77f50f9ab87..ac0b66291d3 100644
--- a/src/components/script/dom/htmlcollection.rs
+++ b/src/components/script/dom/htmlcollection.rs
@@ -56,11 +56,11 @@ impl HTMLCollection {
}
impl BindingObject for HTMLCollection {
- fn GetParentObject(&self, cx: *JSContext) -> @mut CacheableWrapper {
+ fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
let page = page_from_context(cx);
// TODO(tkuehn): This only handles the top-level frame. Need to grab subframes.
unsafe {
- (*page).frame.get_ref().window as @mut CacheableWrapper
+ Some((*page).frame.get_ref().window as @mut CacheableWrapper)
}
}
}