mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
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.
This commit is contained in:
parent
9358f108c4
commit
1f603c54ff
6 changed files with 248 additions and 13 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue