1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

LibWeb: Ignore some collapsible whitespace when building lines

When collapsing whitespace, we can skip over all-whitespace chunks at
the start of each line, and immediately following fragments that
themselves end in whitespace.
This commit is contained in:
Andreas Kling 2022-01-21 14:15:10 +01:00
parent 766d816db3
commit 9f39ad8929
3 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ public:
size_t length_in_node { 0 };
float width { 0.0f };
bool should_force_break { false };
bool is_collapsible_whitespace { false };
};
explicit InlineLevelIterator(Layout::Box& container, LayoutMode layout_mode)