diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-01-23 12:47:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 11:47:13 +0000 |
commit | 7de0486e2e67a17e4cdcc881c7f3bd3fd1a66fb6 (patch) | |
tree | b7d236c04dcbb17fe79f4dac588bbab19667820c /third_party/WebIDL | |
parent | 1d67aa44ca13cb3bcccc96b34fc2d86272e33f71 (diff) | |
download | servo-7de0486e2e67a17e4cdcc881c7f3bd3fd1a66fb6.tar.gz servo-7de0486e2e67a17e4cdcc881c7f3bd3fd1a66fb6.zip |
layout: Count word separators as justification opportunities when trimming whitespace (#31161)
Before counting whitepsace-only `GlyphStore`s where counted as a single
justification opportunity when trimming whitespace from the front and
back of lines. This isn't correct, instead count the actual number of
word seperators of the trimmed `GlyphStore`s.
These two counts can be different in the case where whitespace collapse
isn't happening yet (flexbox). In addition, using word seperators means
the code is making less assumptions about the contents of the line and
is more robust.
This fixes some crashes in flexbox tests on debug builds.
Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
Diffstat (limited to 'third_party/WebIDL')
0 files changed, 0 insertions, 0 deletions