mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
WebContent: Set correct scroll offset for PageHost painting
This commit is contained in:
parent
3f969286d7
commit
e97865e982
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue