summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-19 12:28:50 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-19 12:28:50 +0100
commitdf235d2c9fc23229f8230903a61c7bc59dd630e5 (patch)
tree30f7ac423cde11439fb34bfc8ff24ddedcfdd466 /Userland/Libraries/LibWeb/Layout
parentc42e949f5bc652c9894b67bdacbfb4d03ce5091c (diff)
downloadserenity-df235d2c9fc23229f8230903a61c7bc59dd630e5.zip
LibWeb: Relax unnecessarily narrow cast in Node::containing_block()
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp
index 4d86439cec..8809e9c832 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Node.cpp
@@ -88,7 +88,7 @@ Box const* Node::containing_block() const
ancestor = ancestor->parent();
while (ancestor && ancestor->is_anonymous())
ancestor = nearest_ancestor_capable_of_forming_a_containing_block(*ancestor);
- return static_cast<BlockContainer const*>(ancestor);
+ return static_cast<Box const*>(ancestor);
}
if (position == CSS::Position::Fixed)