Skip to content

Commit

Permalink
combine conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Clark Gaebel committed Oct 28, 2014
1 parent 432071b commit 47091c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/layout/layout_task.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 47091c0

Please sign in to comment.