mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Add initial support for scrollable overflow in layout_2020
This still isn't totally correct and non-root scrolling is not handled at all, but the root frame now scrolls.
This commit is contained in:
parent
74d1f02a6a
commit
8825d588c1
7 changed files with 212 additions and 56 deletions
|
@ -290,11 +290,11 @@ impl<'box_tree> PositioningContext<'box_tree> {
|
|||
);
|
||||
positioned_box_fragment
|
||||
.children
|
||||
.push(Fragment::Anonymous(AnonymousFragment {
|
||||
.push(Fragment::Anonymous(AnonymousFragment::new(
|
||||
padding_rect,
|
||||
children,
|
||||
rect: padding_rect,
|
||||
mode: positioned_box_fragment.style.writing_mode,
|
||||
}))
|
||||
positioned_box_fragment.style.writing_mode,
|
||||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -470,16 +470,16 @@ impl<'box_tree> HoistedAbsolutelyPositionedBox<'box_tree> {
|
|||
size,
|
||||
};
|
||||
|
||||
BoxFragment {
|
||||
tag: self.absolutely_positioned_box.contents.tag,
|
||||
style: style.clone(),
|
||||
children: fragments,
|
||||
BoxFragment::new(
|
||||
self.absolutely_positioned_box.contents.tag,
|
||||
style.clone(),
|
||||
fragments,
|
||||
content_rect,
|
||||
padding,
|
||||
border,
|
||||
margin,
|
||||
block_margins_collapsed_with_children: CollapsedBlockMargins::zero(),
|
||||
}
|
||||
CollapsedBlockMargins::zero(),
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue