mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #3692 : cgaebel/servo/fix-incremental-append-style, r=pcwalton
@pcwalton r?
This commit is contained in:
commit
b83352f7eb
1 changed files with 3 additions and 7 deletions
|
@ -786,17 +786,13 @@ impl LayoutTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn dirty_all_nodes(node: &mut LayoutNode) {
|
unsafe fn dirty_all_nodes(node: &mut LayoutNode) {
|
||||||
|
node.set_changed(true);
|
||||||
node.set_dirty(true);
|
node.set_dirty(true);
|
||||||
|
node.set_dirty_siblings(true);
|
||||||
let mut has_children = false;
|
node.set_dirty_descendants(true);
|
||||||
|
|
||||||
for mut kid in node.children() {
|
for mut kid in node.children() {
|
||||||
LayoutTask::dirty_all_nodes(&mut kid);
|
LayoutTask::dirty_all_nodes(&mut kid);
|
||||||
has_children = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if has_children {
|
|
||||||
node.set_dirty_descendants(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue