diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2021-04-12 11:47:09 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-02 22:48:06 +0200 |
commit | 88cfaf7bf0ad2d5d3adb2654a5f7cc5b810a3ccd (patch) | |
tree | 47ec61dc9f8fb3ef9867be1cda3db5568e9b6686 /Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp | |
parent | ac238b3bd63e47a334c6859ddb6570b89f7be3dc (diff) | |
download | serenity-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/LineBoxFragment.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp index b039148155..856e5849a0 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp +++ b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp @@ -48,7 +48,7 @@ const Gfx::FloatRect LineBoxFragment::absolute_rect() const { Gfx::FloatRect rect { {}, size() }; rect.set_location(m_layout_node.containing_block()->absolute_position()); - rect.move_by(offset()); + rect.translate_by(offset()); return rect; } |