diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-09-17 19:09:31 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-09-17 19:09:31 -0400 |
commit | 75caade8287bbe9ee25a71bea01e3da6a1d3c1b5 (patch) | |
tree | 69c5dec39e7c212ef25066c2c1b60c720ddc385a /components/script/script_task.rs | |
parent | 787a68336524fb9585922b9ed319a8b194fb8ee1 (diff) | |
parent | 2bd93ed070e852dda57faf9954af1574060b995d (diff) | |
download | servo-75caade8287bbe9ee25a71bea01e3da6a1d3c1b5.tar.gz servo-75caade8287bbe9ee25a71bea01e3da6a1d3c1b5.zip |
Merge pull request #3358 from jdm/thespicemustnotreflow
Delay initiating layout operations for as long as possible.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 3 |
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); } }); |