summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.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/InlineFormattingContext.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/InlineFormattingContext.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
index 5790643d37..535541a97a 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
@@ -154,7 +154,7 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode)
// Shift subsequent sibling fragments to the right to adjust for change in width.
for (size_t j = i + 1; j < line_box.fragments().size(); ++j) {
auto offset = line_box.fragments()[j].offset();
- offset.move_by(diff, 0);
+ offset.translate_by(diff, 0);
line_box.fragments()[j].set_offset(offset);
}
}