Switch the standard slice iterator in inline layout to a custom one in order to

avoid lifetime problems
This commit is contained in:
Patrick Walton 2020-03-13 19:30:43 -07:00
parent 1d9f669cf0
commit 42058681a5
2 changed files with 65 additions and 10 deletions

View file

@ -315,7 +315,7 @@ impl BlockLevelBox {
))
},
BlockLevelBox::OutOfFlowAbsolutelyPositionedBox(box_) => {
let hoisted_fragment = box_.to_hoisted(Vec2::zero(), tree_rank);
let hoisted_fragment = box_.clone().to_hoisted(Vec2::zero(), tree_rank);
let hoisted_fragment_id = hoisted_fragment.fragment_id.clone();
positioning_context.push(hoisted_fragment);
Fragment::AbsoluteOrFixedPositioned(AbsoluteOrFixedPositionedFragment(