when we remove cells the number of columns in the cellmap may rise if rowspans are involved bug 343778 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2006-07-19 19:21:50 +00:00
parent d6bc622d98
commit 9a79b08c79

View File

@ -1073,8 +1073,10 @@ void nsTableFrame::RemoveCell(nsTableCellFrame* aCellFrame,
cellMap->AddColsAtEnd(numColsNotRemoved);
}
}
else NS_ASSERTION(numColsInCache == numColsInMap, "cell map has too many cols");
else if (numColsInCache < numColsInMap) {
// this sets the child list, updates the col cache and cell map
CreateAnonymousColFrames(numColsInMap - numColsInCache, eColAnonymousCell, PR_TRUE);
}
if (IsBorderCollapse()) {
SetBCDamageArea(damageArea);
}