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

LibWeb: Add m_is_grid_item in Layout::Node

This information is going to be needed during painting to treat grid
items as stacking contexts.
This commit is contained in:
Aliaksandr Kalenik 2023-08-20 19:30:39 +02:00 committed by Andreas Kling
parent 08528a8084
commit b4064320bd
2 changed files with 7 additions and 0 deletions

View file

@ -1328,6 +1328,8 @@ void GridFormattingContext::place_grid_items(AvailableSpace const& available_spa
if (child_box.is_out_of_flow(*this))
return IterationDecision::Continue;
child_box.set_grid_item(true);
auto& order_bucket = order_item_bucket.ensure(child_box.computed_values().order());
order_bucket.append(child_box);