diff options
author | Clark Gaebel <cgaebel@mozilla.com> | 2014-10-15 15:47:11 -0700 |
---|---|---|
committer | Clark Gaebel <cgaebel@mozilla.com> | 2014-10-15 15:47:11 -0700 |
commit | 0a541fc83cc698a6781fff8f036c2487e8d4f8ac (patch) | |
tree | b5d328a4fe3532db6683be88e0960312cc354da3 /components/layout/layout_task.rs | |
parent | afc144aa3974db099ec1e66fc974d8e5ef25f74c (diff) | |
download | servo-0a541fc83cc698a6781fff8f036c2487e8d4f8ac.tar.gz servo-0a541fc83cc698a6781fff8f036c2487e8d4f8ac.zip |
Fix append_style reftests with incremental reflow turned on.
@pcwalton r?
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 0d5f5ebbc41..b98517a35e2 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -786,17 +786,13 @@ impl LayoutTask { } unsafe fn dirty_all_nodes(node: &mut LayoutNode) { + node.set_changed(true); node.set_dirty(true); - - let mut has_children = false; + node.set_dirty_siblings(true); + node.set_dirty_descendants(true); for mut kid in node.children() { LayoutTask::dirty_all_nodes(&mut kid); - has_children = true; - } - - if has_children { - node.set_dirty_descendants(true); } } |