mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
combine conditions
This commit is contained in:
parent
432071b703
commit
47091c014d
1 changed files with 2 additions and 4 deletions
|
@ -603,11 +603,9 @@ impl LayoutTask {
|
||||||
&data.url);
|
&data.url);
|
||||||
|
|
||||||
// Handle conditions where the entire flow tree is invalid.
|
// Handle conditions where the entire flow tree is invalid.
|
||||||
let mut needs_dirtying = false;
|
let mut needs_dirtying = rw_data.stylesheet_dirty;
|
||||||
needs_dirtying |= rw_data.stylesheet_dirty;
|
|
||||||
|
|
||||||
let mut needs_reflow = false;
|
let mut needs_reflow = current_screen_size != old_screen_size;
|
||||||
needs_reflow |= current_screen_size != old_screen_size;
|
|
||||||
|
|
||||||
// If the entire flow tree is invalid, then it will be reflowed anyhow.
|
// If the entire flow tree is invalid, then it will be reflowed anyhow.
|
||||||
needs_reflow &= !needs_dirtying;
|
needs_reflow &= !needs_dirtying;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue