servo/components/layout_2020/flow
Martin Robinson 5dda97d187
layout: Wait to count justification opportunities until justification (#31236)
Instead of tracking justification opportunities during line layout, wait
until the line is about to be laid out and justification is about
happen. This makes the logic for tracking justification opportunities
simpler. In particular, we no longer have to carefully adjust them when
trimming whitespace. Additionally, this avoids a bit of work unless
justification is turned on.

This also includes a small cleanup of the justification code.
2024-02-06 16:33:22 +00:00
..
construct.rs layout: Shape text only once (#31146) 2024-01-25 14:33:47 +00:00
float.rs layout: Collect both start and end baselines for fragments (#31230) 2024-02-05 18:06:05 +00:00
inline.rs layout: Wait to count justification opportunities until justification (#31236) 2024-02-06 16:33:22 +00:00
line.rs layout: Wait to count justification opportunities until justification (#31236) 2024-02-06 16:33:22 +00:00
mod.rs layout: Collect both start and end baselines for fragments (#31230) 2024-02-05 18:06:05 +00:00
root.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
text_run.rs layout: Shape text only once (#31146) 2024-01-25 14:33:47 +00:00