aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
authorClark Gaebel <cgaebel@mozilla.com>2014-10-15 15:47:11 -0700
committerClark Gaebel <cgaebel@mozilla.com>2014-10-15 15:47:11 -0700
commit0a541fc83cc698a6781fff8f036c2487e8d4f8ac (patch)
treeb5d328a4fe3532db6683be88e0960312cc354da3 /components/layout/layout_task.rs
parentafc144aa3974db099ec1e66fc974d8e5ef25f74c (diff)
downloadservo-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.rs10
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);
}
}