summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-10 10:38:13 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-11 00:21:49 +0100
commit9f5cbcaad39aa9df43694140613fdd8b3b2fe5b2 (patch)
tree3091144b77cf21e3409d04f2f93f6256538bfc90 /Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
parentcc8e429126f95aa27c675817f79cbdc8002e18a0 (diff)
downloadserenity-9f5cbcaad39aa9df43694140613fdd8b3b2fe5b2.zip
LibWeb: Hang StackingContext off of the paint boxes
Stacking contexts have nothing to do with layout and everything with painting, so let's keep them in Painting::Box.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockContainer.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp b/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
index 414b82c1b5..a76b3677b0 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
@@ -88,7 +88,7 @@ HitTestResult BlockContainer::hit_test(const Gfx::IntPoint& position, HitTestTyp
HitTestResult last_good_candidate;
for (auto& line_box : m_paint_box->m_line_boxes) {
for (auto& fragment : line_box.fragments()) {
- if (is<Box>(fragment.layout_node()) && verify_cast<Box>(fragment.layout_node()).stacking_context())
+ if (is<Box>(fragment.layout_node()) && verify_cast<Box>(fragment.layout_node()).m_paint_box->stacking_context())
continue;
if (enclosing_int_rect(fragment.absolute_rect()).contains(position)) {
if (is<BlockContainer>(fragment.layout_node()))