combine conditions

This commit is contained in:
Clark Gaebel 2014-10-28 10:26:48 -07:00
parent 432071b703
commit 47091c014d

View file

@ -603,11 +603,9 @@ impl LayoutTask {
&data.url);
// Handle conditions where the entire flow tree is invalid.
let mut needs_dirtying = false;
needs_dirtying |= rw_data.stylesheet_dirty;
let mut needs_dirtying = rw_data.stylesheet_dirty;
let mut needs_reflow = false;
needs_reflow |= current_screen_size != old_screen_size;
let mut needs_reflow = current_screen_size != old_screen_size;
// If the entire flow tree is invalid, then it will be reflowed anyhow.
needs_reflow &= !needs_dirtying;