mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Invert control flow, fix resizing, and improve checkerboarding
significantly by giving tiles some time to paint before we render unrendered content.
This commit is contained in:
parent
e483a189a3
commit
10f7b49cf7
27 changed files with 1195 additions and 678 deletions
|
@ -182,7 +182,7 @@ impl Page {
|
|||
if force_reflow {
|
||||
let frame = self.frame();
|
||||
let window = frame.as_ref().unwrap().window.root();
|
||||
self.reflow(reflow_goal, window.control_chan().clone(), window.compositor(), query);
|
||||
self.reflow(reflow_goal, window.control_chan().clone(), &mut **window.compositor(), query);
|
||||
} else {
|
||||
self.avoided_reflows.set(self.avoided_reflows.get() + 1);
|
||||
}
|
||||
|
@ -328,9 +328,8 @@ impl Page {
|
|||
pub fn reflow(&self,
|
||||
goal: ReflowGoal,
|
||||
script_chan: ScriptControlChan,
|
||||
compositor: &ScriptListener,
|
||||
compositor: &mut ScriptListener,
|
||||
query_type: ReflowQueryType) {
|
||||
|
||||
let root = match *self.frame() {
|
||||
None => return,
|
||||
Some(ref frame) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue