Fixup calls to DumpCellMap() with NS_DEBUG #ifdefs

This commit is contained in:
joki%netscape.com 1998-11-06 02:38:17 +00:00
Родитель 31357bacf1
Коммит cc216cef21
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -835,11 +835,13 @@ void nsTableFrame::SetMinColSpanForTable()
if (1<minColSpan) if (1<minColSpan)
{ {
mCellMap->SetMinColSpan(colIndex, minColSpan); mCellMap->SetMinColSpan(colIndex, minColSpan);
#ifdef NS_DEBUG
if (gsDebug==PR_TRUE) if (gsDebug==PR_TRUE)
{ {
printf("minColSpan for col %d set to %d\n", colIndex, minColSpan); printf("minColSpan for col %d set to %d\n", colIndex, minColSpan);
DumpCellMap(); DumpCellMap();
} }
#endif
} }
} }
} }
@ -889,8 +891,10 @@ void nsTableFrame::AddCellToTable (nsTableRowFrame *aRowFrame,
colIndex++; colIndex++;
} }
#ifdef NS_DEBUG
if (gsDebug==PR_TRUE) if (gsDebug==PR_TRUE)
DumpCellMap (); DumpCellMap ();
#endif
} }
NS_METHOD nsTableFrame::ReBuildCellMap() NS_METHOD nsTableFrame::ReBuildCellMap()
@ -1492,11 +1496,13 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
delete mCellMap; delete mCellMap;
mCellMap = new nsCellMap(0,0); mCellMap = new nsCellMap(0,0);
ReBuildCellMap(); ReBuildCellMap();
#ifdef NS_DEBUG
if (PR_TRUE==gsDebugIR) if (PR_TRUE==gsDebugIR)
{ {
DumpCellMap(); DumpCellMap();
printf("tableFrame thinks colCount is %d\n", mEffectiveColCount); printf("tableFrame thinks colCount is %d\n", mEffectiveColCount);
} }
#endif
needsRecalc=PR_TRUE; needsRecalc=PR_TRUE;
} }
if (PR_FALSE==IsFirstPassValid()) if (PR_FALSE==IsFirstPassValid())

Просмотреть файл

@ -835,11 +835,13 @@ void nsTableFrame::SetMinColSpanForTable()
if (1<minColSpan) if (1<minColSpan)
{ {
mCellMap->SetMinColSpan(colIndex, minColSpan); mCellMap->SetMinColSpan(colIndex, minColSpan);
#ifdef NS_DEBUG
if (gsDebug==PR_TRUE) if (gsDebug==PR_TRUE)
{ {
printf("minColSpan for col %d set to %d\n", colIndex, minColSpan); printf("minColSpan for col %d set to %d\n", colIndex, minColSpan);
DumpCellMap(); DumpCellMap();
} }
#endif
} }
} }
} }
@ -889,8 +891,10 @@ void nsTableFrame::AddCellToTable (nsTableRowFrame *aRowFrame,
colIndex++; colIndex++;
} }
#ifdef NS_DEBUG
if (gsDebug==PR_TRUE) if (gsDebug==PR_TRUE)
DumpCellMap (); DumpCellMap ();
#endif
} }
NS_METHOD nsTableFrame::ReBuildCellMap() NS_METHOD nsTableFrame::ReBuildCellMap()
@ -1492,11 +1496,13 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
delete mCellMap; delete mCellMap;
mCellMap = new nsCellMap(0,0); mCellMap = new nsCellMap(0,0);
ReBuildCellMap(); ReBuildCellMap();
#ifdef NS_DEBUG
if (PR_TRUE==gsDebugIR) if (PR_TRUE==gsDebugIR)
{ {
DumpCellMap(); DumpCellMap();
printf("tableFrame thinks colCount is %d\n", mEffectiveColCount); printf("tableFrame thinks colCount is %d\n", mEffectiveColCount);
} }
#endif
needsRecalc=PR_TRUE; needsRecalc=PR_TRUE;
} }
if (PR_FALSE==IsFirstPassValid()) if (PR_FALSE==IsFirstPassValid())