diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-12 15:02:53 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-12 15:02:53 +0200 |
commit | 2530378f59ff8152a3da94c33569f2c246c9f761 (patch) | |
tree | 416204478ca10717c470eeb7996307bba0177772 /Libraries/LibHTML/HtmlView.h | |
parent | 14f0a5943b16345237c63bb932cdb9af5c85dd1d (diff) | |
download | serenity-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/HtmlView.h')
-rw-r--r-- | Libraries/LibHTML/HtmlView.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibHTML/HtmlView.h b/Libraries/LibHTML/HtmlView.h index bccd78286a..3d147b8f7e 100644 --- a/Libraries/LibHTML/HtmlView.h +++ b/Libraries/LibHTML/HtmlView.h @@ -23,6 +23,8 @@ public: URL url() const; + void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; } + Function<void(const String&)> on_link_click; Function<void(const String&)> on_title_change; Function<void(const URL&)> on_load_start; @@ -41,4 +43,6 @@ private: RefPtr<Frame> m_main_frame; RefPtr<Document> m_document; RefPtr<LayoutNode> m_layout_root; + + bool m_should_show_line_box_borders { false }; }; |