servo/components/gfx/text
Martin Robinson f1c291853e
Stop sending " " to linebreaker for replaced content (#30740)
We previously sent a " " to the linebreaker in order to ensure that the
next text had a soft wrap opportunity at the start. Calling `next(" ")`
without waiting until the returned index was 1, violated some
invariants of linebreaker ultimately causing a panic.

Instead of using the linebreaker for this, simply keep a flag in the
IFC layout state, which avoids the problem entirely.

Fixes #30703.
2023-11-30 14:46:14 +00:00
..
shaping Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
glyph.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
mod.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
text_run.rs Stop sending " " to linebreaker for replaced content (#30740) 2023-11-30 14:46:14 +00:00
util.rs Fix some new warnings 2019-06-22 14:59:09 +02:00