diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-11-04 20:54:05 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-05 17:42:31 +0100 |
commit | 65cdf89a8bd0de699d78f3204291f9c615aee036 (patch) | |
tree | 4ff3f3f3b4779ab8a1f95ee7fac8d5fd5843aadf /Userland/Libraries/LibWeb/Painting | |
parent | c70dcaefcd4e6f5827d84320fc1fadd77970097c (diff) | |
download | serenity-65cdf89a8bd0de699d78f3204291f9c615aee036.zip |
LibWeb: Convert Layout Boxes to new pixel units
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index 2853e47059..59472a6252 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -551,7 +551,7 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const // FIXME: Handle overflow-x and overflow-y being different values. auto clip_box = context.rounded_device_rect(absolute_padding_box_rect()); context.painter().add_clip_rect(clip_box.to_type<int>()); - auto scroll_offset = static_cast<Layout::BlockContainer const&>(layout_box()).scroll_offset(); + auto scroll_offset = context.rounded_device_point(static_cast<Layout::BlockContainer const&>(layout_box()).scroll_offset()); context.painter().translate(-scroll_offset.to_type<int>()); auto border_radii = normalized_border_radii_data(ShrinkRadiiForBorders::Yes); |