diff options
author | Tim Kuehn <tkuehn@cmu.edu> | 2013-07-12 20:19:48 -0700 |
---|---|---|
committer | Tim Kuehn <tkuehn@cmu.edu> | 2013-07-29 11:03:17 -0700 |
commit | e9888b299c0af0f57919535ec7cf4d30e23ece5a (patch) | |
tree | 275ab0246f9408545ee588bcd3d3863e5d525357 /src/components/script/dom/blob.rs | |
parent | eaa20edcd7c2097dd086014ae4193426fdf3fab6 (diff) | |
download | servo-e9888b299c0af0f57919535ec7cf4d30e23ece5a.tar.gz servo-e9888b299c0af0f57919535ec7cf4d30e23ece5a.zip |
structural changes to support Iframes
Diffstat (limited to 'src/components/script/dom/blob.rs')
-rw-r--r-- | src/components/script/dom/blob.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/blob.rs b/src/components/script/dom/blob.rs index 2f9d90c2b1c..e8760d985d0 100644 --- a/src/components/script/dom/blob.rs +++ b/src/components/script/dom/blob.rs @@ -4,7 +4,7 @@ use dom::bindings::utils::{WrapperCache, BindingObject, CacheableWrapper}; use dom::bindings::codegen::BlobBinding; -use script_task::{task_from_context}; +use script_task::{page_from_context}; use js::jsapi::{JSContext, JSObject}; @@ -35,9 +35,9 @@ impl CacheableWrapper for Blob { impl BindingObject for Blob { fn GetParentObject(&self, cx: *JSContext) -> @mut CacheableWrapper { - let script_context = task_from_context(cx); + let page = page_from_context(cx); unsafe { - (*script_context).root_frame.get_ref().window as @mut CacheableWrapper + (*page).frame.get_ref().window as @mut CacheableWrapper } } } |