servo/components/layout_2020
Oriol Brufau 9af3495d8a
Consider trailing_whitespace_advance when calling place_line_among_floats() (#30586)
After placing a float, FloatBox's layout_into_line_items() was calling
place_line_among_floats() with ifc.current_line.inline_position as the
width of needed by the contents of the line.

The problem is that this amount includes the trailing whitespace advance
and thus it could seem that the in-flow contents wouldn't fit next to
the float.

That's not the case, since collapsible whitespace at the end of the line
is removed, and preserved whitespace hangs.

So this patch subtracts ifc.current_line.trailing_whitespace_advance
when calling place_line_among_floats(), like it was already happening
when computing the available_inline_size.

Fixes #30561
2023-10-20 11:47:23 +00:00
..
display_list Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578) 2023-10-18 13:16:11 +00:00
flexbox Anonymous boxes that wrap inlines should not inherit overflow (#30579) 2023-10-19 13:43:55 +00:00
flow Consider trailing_whitespace_advance when calling place_line_among_floats() (#30586) 2023-10-20 11:47:23 +00:00
fragment_tree Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578) 2023-10-18 13:16:11 +00:00
tests Allow raising FloatContext ceiling after processing box with overflow (#30539) 2023-10-17 07:53:57 +00:00
Cargo.toml Fix painting order of atomic inline stacking containers (#30458) 2023-10-06 16:00:00 +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 Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +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 Refactor scrolls on the window object (#29680) 2023-09-15 10:57:54 +00: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 Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +00:00
traversal.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00