From e97865e9828655fdb7e7ead4f1fd7743a884c609 Mon Sep 17 00:00:00 2001 From: speles Date: Sat, 6 Mar 2021 02:29:18 +0200 Subject: [PATCH] WebContent: Set correct scroll offset for PageHost painting --- Userland/Services/WebContent/PageHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp index 4ffabbc4c3a..6afa6726460 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);