Fix various bugs in the column iterator's keeping track of the current row.

Bug 367749, r=bernd, sr=roc
This commit is contained in:
bzbarsky@mit.edu
2007-01-24 20:18:04 +00:00
parent cb9dc0a73f
commit 40955e1aec
3 changed files with 51 additions and 19 deletions

View File

@@ -327,9 +327,10 @@ BasicTableLayoutStrategy::ComputeColumnIntrinsicWidths(nsIRenderingContext* aRen
PRInt32 row = item->row;
col = item->col;
CellData *cellData = cellMap->GetDataAt(row, col);
nsTableCellFrame *cellFrame = cellData->GetCellFrame();
NS_ASSERTION(cellData && cellData->IsOrig(),
"bogus result from spanning cell sorter");
nsTableCellFrame *cellFrame = cellData->GetCellFrame();
NS_ASSERTION(cellFrame, "bogus result from spanning cell sorter");
CellWidthInfo info = GetCellWidthInfo(aRenderingContext, cellFrame);