зеркало из https://github.com/mozilla/pjs.git
Fixup calls to DumpCellMap() with NS_DEBUG #ifdefs
This commit is contained in:
Родитель
9a9a589685
Коммит
7e3ff11eff
|
@ -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())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче