mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Make grid containers be Layout::Box
Grid containers were incorrectly represented as BlockContainer before. Furthermore, GridFormattingContext had a bogus inheritance relationship with BlockFormattingContext. This patch brings our architecture closer to spec by making grid containers be plain boxes and making GFC not inherit from BFC.
This commit is contained in:
parent
44cf418975
commit
8fe748bb89
6 changed files with 10 additions and 10 deletions
|
@ -151,7 +151,7 @@ OwnPtr<FormattingContext> FormattingContext::create_independent_formatting_conte
|
|||
return make<TableFormattingContext>(state, verify_cast<TableBox>(child_box), this);
|
||||
|
||||
if (child_display.is_grid_inside()) {
|
||||
return make<GridFormattingContext>(state, verify_cast<BlockContainer>(child_box), this);
|
||||
return make<GridFormattingContext>(state, child_box, this);
|
||||
}
|
||||
|
||||
VERIFY(is_block_formatting_context());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue