mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename contents to context in AbsolutelyPositionedBox
This commit is contained in:
parent
264b4344fb
commit
b66dd66403
3 changed files with 12 additions and 12 deletions
|
@ -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 {
|
||||
|
|
|
@ -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_) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue