Simplify the content_changed call in ScriptTask::load.

This commit is contained in:
Ms2ger 2014-12-06 10:50:13 +01:00
parent ea907c1311
commit 6374d74d6e

View file

@ -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();
{