summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/RenderingContext.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-12 15:02:53 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-12 15:02:53 +0200
commit2530378f59ff8152a3da94c33569f2c246c9f761 (patch)
tree416204478ca10717c470eeb7996307bba0177772 /Libraries/LibHTML/RenderingContext.h
parent14f0a5943b16345237c63bb932cdb9af5c85dd1d (diff)
downloadserenity-2530378f59ff8152a3da94c33569f2c246c9f761.zip
LibHTML+Browser: Add debug option to draw borders around line boxes
This will be very useful when debugging line layout.
Diffstat (limited to 'Libraries/LibHTML/RenderingContext.h')
-rw-r--r--Libraries/LibHTML/RenderingContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibHTML/RenderingContext.h b/Libraries/LibHTML/RenderingContext.h
index 2e50ed82a5..bfba539968 100644
--- a/Libraries/LibHTML/RenderingContext.h
+++ b/Libraries/LibHTML/RenderingContext.h
@@ -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 };
};