auto merge of #5064 : glennw/servo/hide-after-layout, r=pcwalton

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:
bors-servo 2015-02-26 14:46:10 -07:00
commit 8ad3c5aeb6
4 changed files with 37 additions and 1 deletions

View file

@ -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.