From 1b490b2bfaf465345e89300168c19c70990f4d59 Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Wed, 7 Mar 2007 05:06:38 +0000 Subject: [PATCH] mark zerocolspans to be expanded if they are inserted rather than appended. bug 372776 r/sr=bzbarsky --- layout/tables/nsCellMap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/tables/nsCellMap.cpp b/layout/tables/nsCellMap.cpp index 8ee59461a28..6f1885f3190 100644 --- a/layout/tables/nsCellMap.cpp +++ b/layout/tables/nsCellMap.cpp @@ -1802,6 +1802,10 @@ void nsCellMap::ExpandWithCells(nsTableCellMap& aMap, // set the starting and ending col index for the new cell PRBool zeroColSpan = PR_FALSE; PRInt32 colSpan = GetColSpanForNewCell(*cellFrame, zeroColSpan); + if (zeroColSpan) { + aMap.mTableFrame.SetHasZeroColSpans(PR_TRUE); + aMap.mTableFrame.SetNeedColSpanExpansion(PR_TRUE); + } totalColSpan += colSpan; if (cellX == 0) { endColIndex = aColIndex + colSpan - 1;