Improved the table warning diagnostic

This commit is contained in:
kipp%netscape.com 1998-11-09 23:35:05 +00:00
parent aec75f892e
commit af89649a87
2 changed files with 6 additions and 2 deletions

View File

@ -343,7 +343,9 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
#ifdef NS_DEBUG
if (kidSize.width > availSize.width)
{
printf("WARNING: cell content returned desired width %d given avail width %d\n",
printf("WARNING: cell ");
mFirstChild->ListTag(stdout);
printf(" content returned desired width %d given avail width %d\n",
kidSize.width, availSize.width);
}
#endif

View File

@ -343,7 +343,9 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
#ifdef NS_DEBUG
if (kidSize.width > availSize.width)
{
printf("WARNING: cell content returned desired width %d given avail width %d\n",
printf("WARNING: cell ");
mFirstChild->ListTag(stdout);
printf(" content returned desired width %d given avail width %d\n",
kidSize.width, availSize.width);
}
#endif