MergeContext context = new MergeContext(lineBox, nextBox);
while (next != null)
{
// process next
final RenderBox writeContext = context.getWriteContext();
final StaticBoxLayoutProperties staticBoxLayoutProperties = writeContext.getStaticBoxLayoutProperties();
long spaceWidth = staticBoxLayoutProperties.getSpaceWidth();
if (spaceWidth == 0)
{
// Space has not been computed yet.
final FontMetrics fontMetrics = metaData.getFontMetrics(writeContext.getStyleSheet());
spaceWidth = fontMetrics.getCharWidth(' ');
staticBoxLayoutProperties.setSpaceWidth(spaceWidth);
}
if ((next.getNodeType() & LayoutNodeTypes.MASK_BOX) == LayoutNodeTypes.MASK_BOX)
{
final RenderBox nBox = (RenderBox) next;