servo/components/layout_2020
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
..
display_list Add initial support for sticky positioning for non-legacy layout (#30686) 2023-11-29 09:03:24 +00:00
flexbox Use Au instead of Length in flexbox code (#30704) 2023-11-08 14:23:43 +00:00
flow Stop sending " " to linebreaker for replaced content (#30740) 2023-11-30 14:46:14 +00:00
fragment_tree Add initial support for sticky positioning for non-legacy layout (#30686) 2023-11-29 09:03:24 +00:00
tests Allow raising FloatContext ceiling after processing box with overflow (#30539) 2023-10-17 07:53:57 +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 Anonymous boxes that wrap inlines should not inherit overflow (#30579) 2023-10-19 13:43:55 +00:00
formatting_contexts.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
geom.rs Use Au instead of Length in flexbox code (#30704) 2023-11-08 14:23:43 +00:00
layout_debug.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
lib.rs Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +00:00
lists.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
positioned.rs Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +00:00
query.rs Further changes required by Servo 2023-11-04 08:17:09 +01:00
replaced.rs Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +00:00
sizing.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
style_ext.rs Further changes required by Servo 2023-11-24 08:57:14 +01:00
traversal.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00