servo/components/layout_2020/flow
Oriol Brufau acf0074f8a
Share more code for non-replaced float-avoiding blocks (#34585)
Block-level elements that establish an independent formatting context
(or are replaced) need to avoid overlapping floats.

In the non-replaced case, we have two different subcases, depending on
whether the inline size of the element is known. This patch makes them
share more logic.

Then `solve_clearance_and_inline_margins_avoiding_floats()` would only
be used in the replaced case, so it's removed, inlining its logic.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-12-12 12:53:44 +00:00
..
inline build: upgrade rustc to 1.81.0 (#34270) 2024-12-12 07:26:16 +00:00
construct.rs Make sure to cache inline_content_sizes() (#34586) 2024-12-12 01:37:05 +00:00
float.rs Share more code for non-replaced float-avoiding blocks (#34585) 2024-12-12 12:53:44 +00:00
mod.rs Share more code for non-replaced float-avoiding blocks (#34585) 2024-12-12 12:53:44 +00:00
root.rs layout: Clean up inline layout data types a bit (#34563) 2024-12-11 14:40:34 +00:00