mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
LibWeb: Store overflow data in the FormattingState
This commit is contained in:
parent
92266d2247
commit
2615728d6b
4 changed files with 15 additions and 14 deletions
|
@ -21,11 +21,12 @@ void FormattingState::commit()
|
|||
node.box_model().border = { node_state.border_top, node_state.border_right, node_state.border_bottom, node_state.border_left };
|
||||
node.box_model().margin = { node_state.margin_top, node_state.margin_right, node_state.margin_bottom, node_state.margin_left };
|
||||
|
||||
// For boxes, transfer relative offset and size.
|
||||
// For boxes, transfer relative offset, size, and overflow data.
|
||||
if (is<Layout::Box>(node)) {
|
||||
auto& box = static_cast<Layout::Box&>(node);
|
||||
box.set_offset(node_state.offset);
|
||||
box.set_content_size(node_state.content_width, node_state.content_height);
|
||||
box.set_overflow_data(move(node_state.overflow_data));
|
||||
}
|
||||
|
||||
// For block containers, transfer line boxes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue