aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 8dc4578abb8..a1f2cd27b22 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -687,6 +687,7 @@ impl ScriptTask {
// Kick off the initial reflow of the page.
debug!("kicking off initial reflow of {}", url);
document.deref().content_changed();
+ window.flush_layout(ReflowForDisplay);
let fragment = url.fragment.as_ref().map(|ref fragment| fragment.to_string());
@@ -716,6 +717,8 @@ impl ScriptTask {
Ok(_) => (),
Err(_) => println!("evaluate_script failed")
}
+
+ window.flush_layout(ReflowForDisplay);
}
});