mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Convert LayoutState to new pixel units
This commit is contained in:
parent
76047d1932
commit
c70dcaefcd
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/AtkinsSJ
Commit: c70dcaefcd
Pull-request: https://github.com/SerenityOS/serenity/pull/16514
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg ✅
10 changed files with 179 additions and 179 deletions
|
@ -1732,8 +1732,8 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const
|
|||
y_start += m_grid_rows[i].base_size;
|
||||
for (int i = 0; i < row_end; i++)
|
||||
y_end += m_grid_rows[i].base_size;
|
||||
child_box_state.set_content_width((x_end - x_start).value());
|
||||
child_box_state.set_content_height((y_end - y_start).value());
|
||||
child_box_state.set_content_width((x_end - x_start));
|
||||
child_box_state.set_content_height((y_end - y_start));
|
||||
child_box_state.offset = { x_start, y_start };
|
||||
|
||||
auto available_space_for_children = AvailableSpace(AvailableSize::make_definite(child_box_state.content_width()), AvailableSize::make_definite(child_box_state.content_height()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue