servo/components/layout_2020/flow
Oriol Brufau 9aa3f74878
Avoid crash in PlacementAmongFloats (#30235)
PlacementAmongFloats was assuming that there would always be a FloatBand
at a position smaller than or equal to the given ceiling, but this was
not the case for negative ceilings.

The reason is that the FloatContext initialized the FloatBandTree with
a band at 0, and another at +∞.

This patch changes the initial bands to −∞ and +∞. This seems more
consistent and matches the expectation of PlacementAmongFloats.
2023-08-29 18:40:05 +00:00
..
construct.rs Add initial support for css-text-3 whitespace handling (#29828) 2023-07-20 18:34:31 +00:00
float.rs Avoid crash in PlacementAmongFloats (#30235) 2023-08-29 18:40:05 +00:00
inline.rs Layout floats as children of their inline ancestors (#30130) 2023-08-22 20:10:34 +00:00
mod.rs Split line layout into two phases (#30089) 2023-08-11 07:19:50 +00:00
root.rs Remove rayon_croissant and clean up contains_floats (#29960) 2023-07-19 07:01:55 +00:00