mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Merge pull request #3358 from jdm/thespicemustnotreflow
Delay initiating layout operations for as long as possible.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user