summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/LineBox.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-01-17 15:07:19 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-23 01:22:41 +0100
commit1f603c54ffe2a613a1e443a5974b6b4c43f0a3af (patch)
tree8ebfbeb2b8d293b11f17a18ddf70038f31e38961 /Userland/Libraries/LibWeb/Layout/LineBox.h
parent9358f108c4a090bc14858666a2ea7ebf15b7f727 (diff)
downloadserenity-1f603c54ffe2a613a1e443a5974b6b4c43f0a3af.zip
LibWeb: Add inline-level iterator that enumerates items for line layout
This patch adds a new mechanism that allows InlineFormattingContext to build line boxes incrementally instead of all-in-one go. Incremental build will eventually allow much better support for CSS floating objects.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/LineBox.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/LineBox.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/LineBox.h b/Userland/Libraries/LibWeb/Layout/LineBox.h
index 6e6a3b3cd9..d28f2181a5 100644
--- a/Userland/Libraries/LibWeb/Layout/LineBox.h
+++ b/Userland/Libraries/LibWeb/Layout/LineBox.h
@@ -26,6 +26,7 @@ public:
void trim_trailing_whitespace();
bool is_empty_or_ends_in_whitespace() const;
+ bool is_empty() { return m_fragments.is_empty(); }
bool ends_with_forced_line_break() const;
private: