mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Added some XXX comments
This commit is contained in:
parent
e68c4b971f
commit
5cfdeeea7c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user