aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_task.rs
diff options
context:
space:
mode:
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);
}
}