continue;
}
expectedRows -= 1;
TableRowRenderBox row = (TableRowRenderBox) node;
final TableRowInfoStructure rowInfoStructure = row.getRowInfoStructure();
if (rowInfoStructure.isValidationDone())
{
// ok, we can take the shortcut ..
final int cellCount = rowInfoStructure.getCellCount();
for (int i = 0; i < cellCount; i++)
{
final TableCell cellAt = rowInfoStructure.getCellAt(i);
expectedRows = Math.max (expectedRows, cellAt.getRowSpan() - 1);
}
}
else
{
// the slow-lane: Look at the already declared cells ..
RenderNode nodeCell = row.getFirstChild();
while (nodeCell != null)
{
if (nodeCell instanceof TableCellRenderBox)
{
TableCellRenderBox cellBox = (TableCellRenderBox) nodeCell;