mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01: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.
|
// Kick off the initial reflow of the page.
|
||||||
debug!("kicking off initial reflow of {}", url);
|
debug!("kicking off initial reflow of {}", url);
|
||||||
{
|
document.content_changed(NodeCast::from_ref(*document));
|
||||||
let document_js_ref = (&*document).clone();
|
|
||||||
let document_as_node = NodeCast::from_ref(document_js_ref);
|
|
||||||
document.content_changed(document_as_node);
|
|
||||||
}
|
|
||||||
window.flush_layout();
|
window.flush_layout();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue