mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
fix borrow check failures by reverting to storing *mut Page in window
This commit is contained in:
parent
2b94dd6664
commit
2e6ad0a4a3
8 changed files with 46 additions and 63 deletions
|
@ -22,7 +22,7 @@ impl DOMParser {
|
|||
};
|
||||
|
||||
// TODO(tkuehn): This just handles the top-level page. Need to handle subframes.
|
||||
let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cx = unsafe {(*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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue