mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
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. |
||
---|---|---|
.. | ||
platform | ||
tests | ||
text | ||
Cargo.toml | ||
font.rs | ||
font_cache_thread.rs | ||
font_context.rs | ||
font_template.rs | ||
lib.rs |