mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
LibHTML: Add the currently visible viewport rect to RenderingContext
This will allow rendering code to skip various things sometimes. :^)
This commit is contained in:
@@ -118,6 +118,7 @@ void HtmlView::paint_event(GPaintEvent& event)
|
||||
|
||||
RenderingContext context { painter };
|
||||
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
|
||||
context.set_viewport_rect(visible_content_rect());
|
||||
layout_root()->render(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user