summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/Node.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-25 11:04:29 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-28 12:21:56 +0100
commit7e76a51cb058bfc8c3074eab35a88609d6b80bf7 (patch)
tree3cbe1f1e1b15df340f377141000705ab380b31c0 /Userland/Libraries/LibWeb/Layout/Node.cpp
parent60f699338d8574d39e475a71d05e479911390a5a (diff)
downloadserenity-7e76a51cb058bfc8c3074eab35a88609d6b80bf7.zip
LibWeb: Rename Layout::InitialContainingBlock to Layout::Viewport
The name "initial containing block" was wrong for this, as it doesn't correspond to the HTML element, and that's specifically what it's supposed to do! :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/Node.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp
index 60f8df41cc..2e6b1e86d7 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Node.cpp
@@ -11,10 +11,10 @@
#include <LibWeb/HTML/HTMLHtmlElement.h>
#include <LibWeb/Layout/BlockContainer.h>
#include <LibWeb/Layout/FormattingContext.h>
-#include <LibWeb/Layout/InitialContainingBlock.h>
#include <LibWeb/Layout/Node.h>
#include <LibWeb/Layout/TableBox.h>
#include <LibWeb/Layout/TextNode.h>
+#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Platform/FontPlugin.h>
namespace Web::Layout {
@@ -62,7 +62,7 @@ bool Node::can_contain_boxes_with_position_absolute() const
if (computed_values().position() != CSS::Position::Static)
return true;
- if (is<InitialContainingBlock>(*this))
+ if (is<Viewport>(*this))
return true;
// https://w3c.github.io/csswg-drafts/css-transforms-1/#propdef-transform
@@ -163,13 +163,13 @@ HTML::BrowsingContext& Node::browsing_context()
return *m_browsing_context;
}
-InitialContainingBlock const& Node::root() const
+Viewport const& Node::root() const
{
VERIFY(document().layout_node());
return *document().layout_node();
}
-InitialContainingBlock& Node::root()
+Viewport& Node::root()
{
VERIFY(document().layout_node());
return *document().layout_node();