1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

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
parent ae301d2b02
commit 00bde9ca51
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 };
};