LibWeb: Keep track of the parent of each formatting context

This will allow us to find the containing block formatting context
when needed later on.
This commit is contained in:
Andreas Kling 2020-11-25 20:08:52 +01:00
commit b1e75437c9
Notes: sideshowbarker 2024-07-19 01:16:00 +09:00
9 changed files with 25 additions and 19 deletions

View file

@ -38,8 +38,8 @@
namespace Web::Layout {
TableFormattingContext::TableFormattingContext(Box& context_box)
: BlockFormattingContext(context_box)
TableFormattingContext::TableFormattingContext(Box& context_box, FormattingContext* parent)
: BlockFormattingContext(context_box, parent)
{
}