1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:38:13 +00:00

LibWeb: Dimension inline-block boxes before deciding about line breaks

We won't know if we need to break before the inline-block box until
after we've dimensioned it.
This commit is contained in:
Andreas Kling 2022-01-20 13:46:04 +01:00
parent 67b3f769fb
commit d3adc94ce8
5 changed files with 7 additions and 4 deletions

View file

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