Simplify some code in ScriptTask::load.

This commit is contained in:
Ms2ger 2014-12-19 11:40:27 +01:00
parent 7317518c17
commit 10bda1a52b

View file

@ -828,11 +828,8 @@ impl ScriptTask {
// Kick off the initial reflow of the page.
debug!("kicking off initial reflow of {}", final_url);
{
let document_js_ref = (&*document).clone();
let document_as_node = NodeCast::from_ref(document_js_ref);
document.content_changed(document_as_node, NodeDamage::OtherNodeDamage);
}
document.content_changed(NodeCast::from_ref(*document),
NodeDamage::OtherNodeDamage);
window.flush_layout(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery);
{