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);