mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
Simplify the content_changed call in ScriptTask::load.
This commit is contained in:
parent
ea907c1311
commit
6374d74d6e
1 changed files with 1 additions and 5 deletions
|
@ -758,11 +758,7 @@ impl ScriptTask {
|
|||
|
||||
// Kick off the initial reflow of the page.
|
||||
debug!("kicking off initial reflow of {}", url);
|
||||
{
|
||||
let document_js_ref = (&*document).clone();
|
||||
let document_as_node = NodeCast::from_ref(document_js_ref);
|
||||
document.content_changed(document_as_node);
|
||||
}
|
||||
document.content_changed(NodeCast::from_ref(*document));
|
||||
window.flush_layout();
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue