mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +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
|
@ -601,7 +601,7 @@ impl ScriptTask {
|
|||
let HtmlParserResult {root, js_port, style_port, iframe_port} = html_parsing_result;
|
||||
|
||||
// Create the window and document objects.
|
||||
let window = Window::new(page, self.chan.clone(), self.compositor);
|
||||
let window = Window::new(&mut *page, self.chan.clone(), self.compositor);
|
||||
let document = Document(root, Some(window));
|
||||
|
||||
// Tie the root into the document.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue