LibWeb: Expose FormattingContext type

Instead of having a virtual is_block_formatting_context(), let's have a
type() that can tell you exactly which type of formatting context it is.
This commit is contained in:
Andreas Kling 2021-10-15 01:25:12 +02:00
commit f2d0e8d0ee
Notes: sideshowbarker 2024-07-18 02:13:15 +09:00
6 changed files with 21 additions and 8 deletions

View file

@ -18,7 +18,7 @@
namespace Web::Layout {
BlockFormattingContext::BlockFormattingContext(BlockContainer& root, FormattingContext* parent)
: FormattingContext(root, parent)
: FormattingContext(Type::Block, root, parent)
{
}