summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-11 21:57:56 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-11 21:57:56 +0100
commit63345c4dfc50f3fbb393aca1f20da83a83a7a4e5 (patch)
treee5900ff65ffe6933ee9c8c8bf1b167efa9b5b129 /Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
parent9a92236a2451bbfdb54004740e58f8ff4ed5e1b2 (diff)
downloadserenity-63345c4dfc50f3fbb393aca1f20da83a83a7a4e5.zip
LibWeb: Rename Layout::Box absolute rect helpers
- padded_rect() -> absolute_padding_box_rect() - bordered_rect() -> absolute_border_box_rect()
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 079befc78c..6cd636fa5a 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockContainer.cpp
@@ -46,7 +46,7 @@ void BlockContainer::paint(PaintContext& context, PaintPhase phase)
if (should_clip_overflow()) {
context.painter().save();
// FIXME: Handle overflow-x and overflow-y being different values.
- context.painter().add_clip_rect(enclosing_int_rect(padded_rect()));
+ context.painter().add_clip_rect(enclosing_int_rect(absolute_padding_box_rect()));
context.painter().translate(-m_scroll_offset.to_type<int>());
}