Skip to content

Commit

Permalink
WebContent: Set correct scroll offset for PageHost painting
Browse files Browse the repository at this point in the history
  • Loading branch information
speles authored and awesomekling committed Mar 6, 2021
1 parent 3f96928 commit e97865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Services/WebContent/PageHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e97865e

Please sign in to comment.