Share packed native lists across copied boxes and shipouts

This commit is contained in:
gloamxun committed 2026-11-28 08:01:14 +08:00
1 parent ca3730338e
commit da48cf9cad
16 files changed
+157 -67

No files matched your search

@@ -216,7 +216,7 @@ impl PageInsertions {
let BoxContent::Vertical(nodes) = b.content else {
unreachable!("checked vbox");
};
nodes
std::sync::Arc::unwrap_or_clone(nodes)
} else {
Vec::new()
};
@@ -238,7 +238,7 @@ impl PageInsertions {
let BoxContent::Vertical(nodes) = b.content else {
unreachable!()
};
insertion.nodes = nodes;
insertion.nodes = std::sync::Arc::unwrap_or_clone(nodes);
self.held.push(NativeVerticalNode::Insertion(insertion));
}
} else {