From 0a541fc83cc698a6781fff8f036c2487e8d4f8ac Mon Sep 17 00:00:00 2001 From: Clark Gaebel Date: Wed, 15 Oct 2014 15:47:11 -0700 Subject: [PATCH] Fix append_style reftests with incremental reflow turned on. @pcwalton r? --- components/layout/layout_task.rs | 10 +++------- 1 file 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); } }