hostFrameInDocument function
host's frame through the document adapter (wallsInDocument). Null
when host is not a live wall or is degenerate.
Implementation
HostFrame? hostFrameInDocument(DraftDocument doc, Handle host) {
final w = wallsInDocument(doc, host);
return w == null ? null : hostFrameOf(w.host, w.walls);
}