mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 19:22:53 +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:
parent
1bd2941467
commit
b4c0ea89d5
Notes:
sideshowbarker
2024-07-19 11:40:59 +09:00
Author: https://github.com/awesomekling
Commit: b4c0ea89d5
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue