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
@@ -25,9 +25,10 @@ impl Converter<'_> {
|
||||
self.last_pack_badness.set(Some(b.badness));
|
||||
}
|
||||
}
|
||||
let BoxContent::Horizontal(mut nodes) = b.content else {
|
||||
let BoxContent::Horizontal(nodes) = b.content else {
|
||||
unreachable!()
|
||||
};
|
||||
let mut nodes = std::sync::Arc::unwrap_or_clone(nodes);
|
||||
if let [TextNode::MathChar(c)] = nodes.as_slice() {
|
||||
let difference = b.width - c.width;
|
||||
if difference != 0 {
|
||||
|
||||
Reference in new issue
Block a user