Quieted down some debug noise and added a missing newline to a printf

This commit is contained in:
kipp%netscape.com 1999-10-25 23:02:43 +00:00
Родитель 5e246a69f0
Коммит 533bdbcf57
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -965,13 +965,13 @@ NS_METHOD nsTableRowFrame::ResizeReflow(nsIPresContext& aPresContext,
// we were given by the row group frame
aDesiredSize.width = aReflowState.x;
aDesiredSize.height = aReflowState.maxCellVertSpace;
#ifdef DEBUG
#ifdef DEBUG_karnaze
nscoord overAllocated = aDesiredSize.width - aReflowState.reflowState.availableWidth;
if (overAllocated > 0) {
float p2t;
aPresContext.GetScaledPixelsToTwips(&p2t);
if (overAllocated > p2t) {
printf("row over allocated by %d twips", overAllocated);
printf("row over allocated by %d\n twips", overAllocated);
}
}
#endif

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

@ -965,13 +965,13 @@ NS_METHOD nsTableRowFrame::ResizeReflow(nsIPresContext& aPresContext,
// we were given by the row group frame
aDesiredSize.width = aReflowState.x;
aDesiredSize.height = aReflowState.maxCellVertSpace;
#ifdef DEBUG
#ifdef DEBUG_karnaze
nscoord overAllocated = aDesiredSize.width - aReflowState.reflowState.availableWidth;
if (overAllocated > 0) {
float p2t;
aPresContext.GetScaledPixelsToTwips(&p2t);
if (overAllocated > p2t) {
printf("row over allocated by %d twips", overAllocated);
printf("row over allocated by %d\n twips", overAllocated);
}
}
#endif