script: Reflow 200 milliseconds after the <body> is parsed, like Gecko

does.
This commit is contained in:
Patrick Walton 2015-05-12 17:09:04 -07:00
parent 8759d42559
commit 9e34e82aec
5 changed files with 65 additions and 7 deletions

View file

@ -1565,7 +1565,7 @@ impl ScriptTask {
// Kick off the initial reflow of the page.
debug!("kicking off initial reflow of {:?}", final_url);
document.r().disarm_reflow_timeout();
document.r().content_changed(NodeCast::from_ref(document.r()),
NodeDamage::OtherNodeDamage);
let window = window_from_node(document.r()).root();