summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorspeles <speles@mail.ua>2021-03-06 02:29:18 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-06 14:54:12 +0100
commite97865e9828655fdb7e7ead4f1fd7743a884c609 (patch)
treeda7b3d1dd4189a56d6af4aef84d1e6452983ba11 /Userland/Services
parent3f969286d72a6184e025370c6413d240fb83977b (diff)
downloadserenity-e97865e9828655fdb7e7ead4f1fd7743a884c609.zip
WebContent: Set correct scroll offset for PageHost painting
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WebContent/PageHost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp
index 4ffabbc4c3..6afa672646 100644
--- a/Userland/Services/WebContent/PageHost.cpp
+++ b/Userland/Services/WebContent/PageHost.cpp
@@ -92,7 +92,7 @@ void PageHost::paint(const Gfx::IntRect& content_rect, Gfx::Bitmap& target)
painter.translate(-content_rect.x(), -content_rect.y());
- Web::PaintContext context(painter, palette(), Gfx::IntPoint());
+ Web::PaintContext context(painter, palette(), content_rect.top_left());
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
context.set_viewport_rect(content_rect);
layout_root->paint_all_phases(context);