diff options
author | Andreas Kling <kling@serenityos.org> | 2022-01-17 15:07:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-23 01:22:41 +0100 |
commit | 1f603c54ffe2a613a1e443a5974b6b4c43f0a3af (patch) | |
tree | 8ebfbeb2b8d293b11f17a18ddf70038f31e38961 /Userland/Libraries/LibWeb/Layout/LineBox.h | |
parent | 9358f108c4a090bc14858666a2ea7ebf15b7f727 (diff) | |
download | serenity-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.h | 1 |
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: |