1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +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:
Andreas Kling 2019-10-12 15:02:53 +02:00
parent 14f0a5943b
commit 2530378f59
5 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,10 @@ public:
GPainter& painter() const { return m_painter; }
bool should_show_line_box_borders() const { return m_should_show_line_box_borders; }
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
private:
GPainter& m_painter;
bool m_should_show_line_box_borders { false };
};