servo/components/gfx
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
..
platform Further changes required by Servo 2023-10-02 14:37:19 +00:00
tests Further changes required by Servo 2023-10-02 14:37:19 +00:00
text Stop sending " " to linebreaker for replaced content (#30740) 2023-11-30 14:46:14 +00:00
Cargo.toml Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
font.rs Further changes required by Servo 2023-11-04 08:17:09 +01: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