LibHTML+Browser: Add debug option to draw borders around line boxes

This will be very useful when debugging line layout.
This commit is contained in:
Andreas Kling 2019-10-12 15:02:53 +02:00
parent 14f0a5943b
commit 2530378f59
Notes: sideshowbarker 2024-07-19 11:43:35 +09:00
5 changed files with 20 additions and 0 deletions

View file

@ -111,6 +111,7 @@ void HtmlView::paint_event(GPaintEvent& event)
painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value());
RenderingContext context { painter };
context.set_should_show_line_box_borders(m_should_show_line_box_borders);
m_layout_root->render(context);
}