Share packed native lists across copied boxes and shipouts
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user