WebContent: Set correct scroll offset for PageHost painting

This commit is contained in:
speles 2021-03-06 02:29:18 +02:00 committed by Andreas Kling
parent 3f969286d7
commit e97865e982
Notes: sideshowbarker 2024-07-18 21:40:49 +09:00

View file

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