servo/components/layout_2020/display_list
Martin Robinson de780dcde4
layout: Make Fragment hold ArcRefCell inside (#34923)
Push the interior mutability into enum variants of `Fragment`, so that
they can be cloned. This saves memory in the `Fragment` tree as the
`Fragment` enum is now a relatively wee 16 bytes and the interior parts
can be a variety of sizes. Before, every `Fragment` was the size of the
biggest kind (`BoxFragment` - 248 bytes).

This a step on the way toward incremental layout.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2025-01-13 09:59:59 +00:00
..
background.rs layout: Add support for object-fit and object-position (#33479) 2024-09-18 06:20:28 +00:00
clip_path.rs Set all tracing spans to trace level for now (#34256) 2024-11-19 02:53:43 +00:00
conversions.rs layout: Add support for mix-blend-mode: plus-lighter (#34057) 2024-10-29 17:50:33 +00:00
gradient.rs uses app units in display_list (#33420) 2024-09-13 10:49:59 +00:00
mod.rs layout: Make Fragment hold ArcRefCell inside (#34923) 2025-01-13 09:59:59 +00:00
stacking_context.rs layout: Make Fragment hold ArcRefCell inside (#34923) 2025-01-13 09:59:59 +00:00