mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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> |
||
---|---|---|
.. | ||
base_fragment.rs | ||
box_fragment.rs | ||
containing_block.rs | ||
fragment.rs | ||
fragment_tree.rs | ||
hoisted_shared_fragment.rs | ||
mod.rs | ||
positioning_fragment.rs |