LibWeb: Add Layout::LineBuilder class for incremental line box layout

This class will be used to place items on lines incrementally instead of
the current two-phase approach.
This commit is contained in:
Andreas Kling 2022-01-19 11:57:58 +01:00
commit 00bde9ca51
Notes: sideshowbarker 2024-07-17 20:26:09 +09:00
4 changed files with 166 additions and 0 deletions

View file

@ -32,6 +32,8 @@ public:
private:
friend class BlockContainer;
friend class InlineFormattingContext;
friend class LineBuilder;
NonnullOwnPtrVector<LineBoxFragment> m_fragments;
float m_width { 0 };
};