Rewrite handling of pointers to boxes in the DOM tree

This commit is contained in:
Simon Sapin 2020-05-07 08:31:45 +02:00
parent c43ab0c267
commit 3e8623332b
3 changed files with 33 additions and 73 deletions

View file

@ -88,7 +88,7 @@ fn construct_for_root_element<'dom>(
let display_inside = match Display::from(box_style.display) {
Display::None => {
root_element.unset_boxes_in_subtree();
root_element.unset_all_boxes();
return (ContainsFloats::No, Vec::new());
},
Display::Contents => {