Store direction in ResolvedBox.
Use ResolvedBox when flattening trees.
Define tree for structuring paragraph content.