diff options
author | Clark Gaebel <cgaebel@mozilla.com> | 2014-10-28 10:26:48 -0700 |
---|---|---|
committer | Clark Gaebel <cgaebel@mozilla.com> | 2014-10-28 10:26:48 -0700 |
commit | 47091c014d1cce701b2ca602e589f758dc2e001f (patch) | |
tree | 5d5474f3938d71b9726a9d8910a3d87d6d9f025f /components/layout/layout_task.rs | |
parent | 432071b70305212e5c7bfd4f261e52a44ca83406 (diff) | |
download | servo-47091c014d1cce701b2ca602e589f758dc2e001f.tar.gz servo-47091c014d1cce701b2ca602e589f758dc2e001f.zip |
combine conditions
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 5524d8ec00a..319364743d6 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -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; |