mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix setting display:none after a layout where the element was visible.
Prior to incremental layout, the code would remove the existing construction result. However, with incremental layout the construction result is cloned rather than removed. This change ensures that the previous construction result is cleared when an element's display type changes to none.
This commit is contained in:
parent
cbc4b9520e
commit
a2f1f12c96
4 changed files with 37 additions and 1 deletions
|
@ -1170,8 +1170,9 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> {
|
|||
// results of children.
|
||||
(display::T::none, _, _) => {
|
||||
for child in node.children() {
|
||||
drop(child.swap_out_construction_result())
|
||||
child.set_flow_construction_result(ConstructionResult::None);
|
||||
}
|
||||
node.set_flow_construction_result(ConstructionResult::None);
|
||||
}
|
||||
|
||||
// Table items contribute table flow construction results.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue