servo/components/layout_2020/flow
Martin Robinson 9d11d584f6
layout: Clean up inline layout data types a bit (#34563)
- Remove the `LayoutBox::InlineBox` variant that was only used for
  inline level boxes. Now they are stored in `LayoutBox::InlineLevel`
  along with other kinds of out-of-flow and atomic inline items.
- Reduce the size of `InlineItem` by 260 bytes per item by using atomic
  indirection / pointers. This adds a bit of overhead to access items in
  exchange for a lot of memory saved.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-12-11 14:40:34 +00:00
..
inline layout: Clean up inline layout data types a bit (#34563) 2024-12-11 14:40:34 +00:00
construct.rs layout: Clean up inline layout data types a bit (#34563) 2024-12-11 14:40:34 +00:00
float.rs layout: Make a new ContainingBlockSize type (#34565) 2024-12-11 14:40:04 +00:00
mod.rs layout: Make a new ContainingBlockSize type (#34565) 2024-12-11 14:40:04 +00:00
root.rs layout: Clean up inline layout data types a bit (#34563) 2024-12-11 14:40:34 +00:00