servo/components/layout_2020
Martin Robinson 7de0486e2e
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>
2024-01-23 11:47:13 +00:00
..
display_list rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
flexbox Layout: use Au in ContentSizes (#31135) 2024-01-23 10:18:39 +00:00
flow layout: Count word separators as justification opportunities when trimming whitespace (#31161) 2024-01-23 11:47:13 +00:00
fragment_tree rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
table Layout: use Au in ContentSizes (#31135) 2024-01-23 10:18:39 +00:00
tests layout: Add *very* basic support for table layout (#31121) 2024-01-19 13:20:20 +00:00
Cargo.toml Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
dom.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
dom_traversal.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
formatting_contexts.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
geom.rs layout: Add *very* basic support for table layout (#31121) 2024-01-19 13:20:20 +00:00
layout_debug.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
lib.rs Compile Servo with the latest version of rust stable (#30831) 2023-12-06 17:36:07 +00:00
lists.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
positioned.rs Layout: use Au in ContentSizes (#31135) 2024-01-23 10:18:39 +00:00
query.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
replaced.rs Layout: use Au in ContentSizes (#31135) 2024-01-23 10:18:39 +00:00
sizing.rs Layout: use Au in ContentSizes (#31135) 2024-01-23 10:18:39 +00:00
style_ext.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
traversal.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00