summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-08 11:27:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-08 11:27:46 +0200
commite91edcaa28df60bad1de1799c43d8587d00190db (patch)
tree5dd824b120ec61f695b4581872bcc6cb27608461 /Userland/Libraries/LibWeb/Painting
parente90ccf6a2007defe2778be247c8a4ffc6c91163a (diff)
downloadserenity-e91edcaa28df60bad1de1799c43d8587d00190db.zip
LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock
The "Box" suffix added nothing here.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r--Userland/Libraries/LibWeb/Painting/StackingContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp
index 0ddc27942f..bbce8ce0bd 100644
--- a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp
+++ b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp
@@ -8,7 +8,7 @@
#include <AK/StringBuilder.h>
#include <LibGfx/Painter.h>
#include <LibWeb/Layout/Box.h>
-#include <LibWeb/Layout/InitialContainingBlockBox.h>
+#include <LibWeb/Layout/InitialContainingBlock.h>
#include <LibWeb/Painting/StackingContext.h>
namespace Web::Layout {
@@ -128,12 +128,12 @@ void StackingContext::paint(PaintContext& context)
HitTestResult StackingContext::hit_test(const Gfx::IntPoint& position, HitTestType type) const
{
HitTestResult result;
- if (!is<InitialContainingBlockBox>(m_box)) {
+ if (!is<InitialContainingBlock>(m_box)) {
result = m_box.hit_test(position, type);
} else {
- // NOTE: InitialContainingBlockBox::hit_test() merely calls StackingContext::hit_test()
+ // NOTE: InitialContainingBlock::hit_test() merely calls StackingContext::hit_test()
// so we call its base class instead.
- result = verify_cast<InitialContainingBlockBox>(m_box).BlockBox::hit_test(position, type);
+ result = verify_cast<InitialContainingBlock>(m_box).BlockBox::hit_test(position, type);
}
int z_index = m_box.computed_values().z_index().value_or(0);