summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2021-04-12 11:47:09 -0700
committerAndreas Kling <kling@serenityos.org>2021-05-02 22:48:06 +0200
commit88cfaf7bf0ad2d5d3adb2654a5f7cc5b810a3ccd (patch)
tree47ec61dc9f8fb3ef9867be1cda3db5568e9b6686 /Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
parentac238b3bd63e47a334c6859ddb6570b89f7be3dc (diff)
downloadserenity-88cfaf7bf0ad2d5d3adb2654a5f7cc5b810a3ccd.zip
LibGfx: Unify Rect, Point, and Size
This commit unifies methods and method/param names between the above classes, as well as adds [[nodiscard]] and ALWAYS_INLINE where appropriate. It also renamed the various move_by methods to translate_by, as that more closely matches the transformation terminology.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
index a93207c9c0..815f2bf6bc 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
@@ -550,7 +550,7 @@ static Gfx::FloatRect rect_in_coordinate_space(const Box& box, const Box& contex
for (auto* ancestor = box.parent(); ancestor; ancestor = ancestor->parent()) {
if (is<Box>(*ancestor)) {
auto offset = downcast<Box>(*ancestor).effective_offset();
- rect.move_by(offset);
+ rect.translate_by(offset);
}
if (ancestor == &context_box)
break;