1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +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

@ -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 };
};