1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

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

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()); 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_should_show_line_box_borders(m_should_show_line_box_borders);
context.set_viewport_rect(content_rect); context.set_viewport_rect(content_rect);
layout_root->paint_all_phases(context); layout_root->paint_all_phases(context);