mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Fix append_style reftests with incremental reflow turned on.
@pcwalton r?
This commit is contained in:
parent
afc144aa39
commit
0a541fc83c
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