aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-07-30 13:57:26 -0700
committerbors-servo <release+servo@mozilla.com>2013-07-30 13:57:26 -0700
commit7911ae56954cc0ff03f77ff901233a411a30f1e7 (patch)
tree74051c69466d57a603ae028a9e2dfbcd9fcab611 /src/components/script/dom/formdata.rs
parent0c105b5307bb69e8d43a1c6263b09c1b8e52c355 (diff)
parenta2bdab7989bf39fa5db4cdedc21884ca6018036f (diff)
downloadservo-7911ae56954cc0ff03f77ff901233a411a30f1e7.tar.gz
servo-7911ae56954cc0ff03f77ff901233a411a30f1e7.zip
auto merge of #645 : jdm/servo/window, r=jdm
This one also looks larger than necessary because GetParentObject needed to be changed to return an Option.
Diffstat (limited to 'src/components/script/dom/formdata.rs')
-rw-r--r--src/components/script/dom/formdata.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/formdata.rs b/src/components/script/dom/formdata.rs
index a570447cecc..e5e027ed4f1 100644
--- a/src/components/script/dom/formdata.rs
+++ b/src/components/script/dom/formdata.rs
@@ -63,10 +63,10 @@ impl CacheableWrapper for FormData {
}
impl BindingObject for FormData {
- fn GetParentObject(&self, cx: *JSContext) -> @mut CacheableWrapper {
+ fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
let page = page_from_context(cx);
unsafe {
- (*page).frame.get_ref().window as @mut CacheableWrapper
+ Some((*page).frame.get_ref().window as @mut CacheableWrapper)
}
}
}