Rename contents to context in AbsolutelyPositionedBox

This commit is contained in:
Anthony Ramine 2020-06-10 14:06:16 +02:00
parent 264b4344fb
commit b66dd66403
3 changed files with 12 additions and 12 deletions

View file

@ -294,7 +294,7 @@ impl InlineFormattingContext {
InlineLevelBox::TextRun(run) => run.layout(layout_context, &mut ifc),
InlineLevelBox::Atomic(a) => layout_atomic(layout_context, &mut ifc, a),
InlineLevelBox::OutOfFlowAbsolutelyPositionedBox(box_) => {
let style = AtomicRef::map(box_.borrow(), |box_| &box_.contents.style);
let style = AtomicRef::map(box_.borrow(), |box_| &box_.context.style);
let initial_start_corner =
match Display::from(style.get_box().original_display) {
Display::GeneratingBox(DisplayGeneratingBox::OutsideInside {

View file

@ -326,7 +326,7 @@ impl BlockLevelBox {
positioning_context.push(hoisted_box);
Fragment::AbsoluteOrFixedPositioned(AbsoluteOrFixedPositionedFragment {
hoisted_fragment,
position: box_.borrow().contents.style.clone_position(),
position: box_.borrow().context.style.clone_position(),
})
},
BlockLevelBox::OutOfFlowFloatBox(_box_) => {