private SequenceList createHorizontalSequenceList(final InlineRenderBox box)
{
final SequenceList sequenceList = new SequenceList();
sequenceList.add(StartSequenceElement.INSTANCE, box);
RenderNode next = box.getFirstChild();
RenderBox context = box;
final FastStack contextStack = new FastStack(50);
boolean containsContent = false;
while (next != null)
{
// process next
if ((next.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
{
final RenderBox nBox = (RenderBox) next;
final RenderNode firstChild = nBox.getFirstChild();
if (firstChild != null)
{
// Open a non-empty box context
contextStack.push(context);
next = firstChild;