summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-15 01:25:12 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-17 22:18:59 +0200
commitf2d0e8d0ee5377a38df448d3333179f8e99cb790 (patch)
treedec422f952c83fae39e55e3fcd6f37b19e3bdd78 /Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
parentb77dad5ba3a95426fcde13e3a0d34075a3e70e2c (diff)
downloadserenity-f2d0e8d0ee5377a38df448d3333179f8e99cb790.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
index d872bc6f71..97668287ea 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
@@ -18,7 +18,7 @@
namespace Web::Layout {
BlockFormattingContext::BlockFormattingContext(BlockContainer& root, FormattingContext* parent)
- : FormattingContext(root, parent)
+ : FormattingContext(Type::Block, root, parent)
{
}