mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Store a pointer to the browsing context in the Document.
This commit is contained in:
parent
0b27807ad4
commit
152cec69eb
10 changed files with 53 additions and 23 deletions
|
@ -1602,7 +1602,8 @@ impl Node {
|
|||
};
|
||||
let window = document.window();
|
||||
let loader = DocumentLoader::new(&*document.loader());
|
||||
let document = Document::new(window, Some((*document.url()).clone()),
|
||||
let document = Document::new(window, None,
|
||||
Some((*document.url()).clone()),
|
||||
is_html_doc, None,
|
||||
None, DocumentSource::NotFromParser, loader);
|
||||
Root::upcast::<Node>(document)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue