diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-11 21:57:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-11 21:57:56 +0100 |
commit | 63345c4dfc50f3fbb393aca1f20da83a83a7a4e5 (patch) | |
tree | e5900ff65ffe6933ee9c8c8bf1b167efa9b5b129 /Userland/Libraries/LibWeb/Layout/BlockContainer.cpp | |
parent | 9a92236a2451bbfdb54004740e58f8ff4ed5e1b2 (diff) | |
download | serenity-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.cpp | 2 |
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>()); } |