1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

LibWeb: Split PaintContext::viewport_rect() into device/css variants

For now, everyone uses `device_viewport_rect()`, until I convert them.
This commit is contained in:
Sam Atkins 2022-10-27 14:37:05 +01:00 committed by Linus Groh
parent 0be479dcfb
commit 4440af0870
8 changed files with 24 additions and 13 deletions

View file

@ -120,7 +120,7 @@ void PageHost::paint(Web::DevicePixelRect const& content_rect, Gfx::Bitmap& targ
Web::PaintContext context(painter, palette(), device_pixels_per_css_pixel());
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
context.set_viewport_rect(content_rect.to_type<int>());
context.set_device_viewport_rect(content_rect);
context.set_has_focus(m_has_focus);
layout_root->paint_all_phases(context);
}