mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user