1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Store box's containing line box fragment in FormattingState

Layout should not change any properties of a box until the moment a
FormattingState is committed.
This commit is contained in:
Andreas Kling 2022-02-28 12:41:23 +01:00
parent aa72ebf7aa
commit f8aa0c144f
5 changed files with 13 additions and 10 deletions

View file

@ -44,6 +44,7 @@ void FormattingState::commit()
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));
box.set_containing_line_box_fragment(node_state.containing_line_box_fragment);
}
// For block containers, transfer line boxes.