mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove layout_is_idle.
Code on the script thread can only observe self.layout_join_port being Some() between the time it is set in force_reflow, and the join_layout call later in that function, and no significant code is called in that code. This implies that layout_is_idle will always return true, so there is no reason for the function to exist.
This commit is contained in:
parent
af448374f9
commit
9d739cf684
2 changed files with 4 additions and 10 deletions
|
@ -712,12 +712,10 @@ impl ScriptTask {
|
|||
for page in page.iter() {
|
||||
// Only process a resize if layout is idle.
|
||||
let window = page.window();
|
||||
if window.r().layout_is_idle() {
|
||||
let resize_event = window.r().steal_resize_event();
|
||||
match resize_event {
|
||||
Some(size) => resizes.push((window.r().pipeline(), size)),
|
||||
None => ()
|
||||
}
|
||||
let resize_event = window.r().steal_resize_event();
|
||||
match resize_event {
|
||||
Some(size) => resizes.push((window.r().pipeline(), size)),
|
||||
None => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue