switched window.page from *mut Page to @mut Page

This commit is contained in:
Tim Kuehn 2013-07-29 14:14:31 -07:00
parent 43491d5b23
commit df5306e358
5 changed files with 17 additions and 26 deletions

View file

@ -22,7 +22,7 @@ impl DOMParser {
};
// TODO(tkuehn): This just handles the top-level page. Need to handle subframes.
let cx = unsafe {(*owner.page).js_info.get_ref().js_compartment.cx.ptr};
let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;
let cache = owner.get_wrappercache();
let scope = cache.get_wrapper();
parser.wrap_object_shared(cx, scope);