pub fn wrap_top(
indexed: &IndexedDocument<'_>,
new_root: BlockId,
builder: &mut CommitBuilder,
)Expand description
Inventory row “Wrap Top”: add a level above the whole document — a
fresh root whose sole child is the old one, which demotes to a child
rect. A document with no root yet (top is NULL) has nothing to
demote, so the wrap is just the new root.