servo/components/gfx
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
..
platform rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
tests Further changes required by Servo 2023-10-02 14:37:19 +00:00
text layout: Count word separators as justification opportunities when trimming whitespace (#31161) 2024-01-23 11:47:13 +00:00
Cargo.toml Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
font.rs layout: Implement support for line-height and vertical-align (#30902) 2024-01-08 14:49:50 +00:00
font_cache_thread.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
font_context.rs Further changes required by Servo 2023-11-04 08:17:09 +01:00
font_template.rs Further changes required by Servo 2023-10-02 14:37:19 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00