Added some XXX comments

This commit is contained in:
troy%netscape.com 1999-03-06 05:03:09 +00:00
parent e68c4b971f
commit 5cfdeeea7c
2 changed files with 8 additions and 0 deletions

View File

@ -818,6 +818,9 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
case eStyleUnit_Coord:
maxWidth = position->mWidth.GetCoordValue();
// NAV4 compatibility: 0-coord-width == auto-width
// XXX This doesn't belong here. If the HTML attribute "width=0" should work
// like 'auto', then have the style mapping code in the content object
// handle it...
if (0==maxWidth)
maxWidth = aReflowState.availableWidth;
break;
@ -830,6 +833,7 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
maxWidth = (nscoord)((float)aReflowState.availableWidth *
position->mWidth.GetPercentValue());
// NAV4 compatibility: 0-percent-width == auto-width
// XXX Ditto...
if (0==maxWidth)
maxWidth = aReflowState.availableWidth;
break;

View File

@ -818,6 +818,9 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
case eStyleUnit_Coord:
maxWidth = position->mWidth.GetCoordValue();
// NAV4 compatibility: 0-coord-width == auto-width
// XXX This doesn't belong here. If the HTML attribute "width=0" should work
// like 'auto', then have the style mapping code in the content object
// handle it...
if (0==maxWidth)
maxWidth = aReflowState.availableWidth;
break;
@ -830,6 +833,7 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
maxWidth = (nscoord)((float)aReflowState.availableWidth *
position->mWidth.GetPercentValue());
// NAV4 compatibility: 0-percent-width == auto-width
// XXX Ditto...
if (0==maxWidth)
maxWidth = aReflowState.availableWidth;
break;