1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibWeb: Make IFC aware that its parent is always a BFC

This simplifies some code and allows us to use tighter types for the
parent context everywhere.
This commit is contained in:
Andreas Kling 2022-01-23 15:22:18 +01:00
parent 83a6e698a0
commit 00bd17034d
5 changed files with 21 additions and 11 deletions

View file

@ -384,7 +384,7 @@ void BlockFormattingContext::compute_position(Box& box)
void BlockFormattingContext::layout_inline_children(BlockContainer& block_container, LayoutMode layout_mode)
{
InlineFormattingContext context(block_container, this);
InlineFormattingContext context(block_container, *this);
context.run(block_container, layout_mode);
}