mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Switch the standard slice iterator in inline layout to a custom one in order to
avoid lifetime problems
This commit is contained in:
parent
1d9f669cf0
commit
42058681a5
2 changed files with 65 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue