Inlined content_changed

This commit is contained in:
Adrian Utrilla 2016-04-04 11:03:30 +02:00
parent 88d29e537c
commit bc1b8ef4c6
6 changed files with 13 additions and 22 deletions

View file

@ -2117,8 +2117,7 @@ impl ScriptThread {
// Kick off the initial reflow of the page.
debug!("kicking off initial reflow of {:?}", final_url);
document.disarm_reflow_timeout();
document.content_changed(document.upcast(),
NodeDamage::OtherNodeDamage);
document.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
let window = window_from_node(document.r());
window.reflow(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery, ReflowReason::FirstLoad);