mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Pass current target box to BFC::run()
The BFC "context box" is now the outer box of the block formatting context. Previously the context box was always the current target box, which made it hard to reason about who was really the containing block of whom in various places. Note that IFC still has the containing block as its context box, this change only affects BFC. However, to clarify the situation in IFC, I've added a containing_block() getter than returns the context_box().
This commit is contained in:
parent
b638e74b68
commit
59de4adb60
14 changed files with 138 additions and 156 deletions
|
@ -120,7 +120,7 @@ float ReplacedBox::calculate_height() const
|
|||
|
||||
void ReplacedBox::split_into_lines(InlineFormattingContext& context, LayoutMode)
|
||||
{
|
||||
auto& containing_block = context.context_box();
|
||||
auto& containing_block = context.containing_block();
|
||||
|
||||
// FIXME: This feels out of place. It would be nice if someone at a higher level
|
||||
// made sure we had usable geometry by the time we start splitting.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue