diff options
author | Andreas Kling <kling@serenityos.org> | 2023-02-19 12:28:50 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-19 12:28:50 +0100 |
commit | df235d2c9fc23229f8230903a61c7bc59dd630e5 (patch) | |
tree | 30f7ac423cde11439fb34bfc8ff24ddedcfdd466 /Userland/Libraries/LibWeb/Layout | |
parent | c42e949f5bc652c9894b67bdacbfb4d03ce5091c (diff) | |
download | serenity-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.cpp | 2 |
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) |