From 5cfdeeea7c1c9bf6ede772ed644f43b960a71444 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sat, 6 Mar 1999 05:03:09 +0000 Subject: [PATCH] Added some XXX comments --- layout/html/table/src/nsTableOuterFrame.cpp | 4 ++++ layout/tables/nsTableOuterFrame.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/layout/html/table/src/nsTableOuterFrame.cpp b/layout/html/table/src/nsTableOuterFrame.cpp index 84396441f303..84c7ba75c5c6 100644 --- a/layout/html/table/src/nsTableOuterFrame.cpp +++ b/layout/html/table/src/nsTableOuterFrame.cpp @@ -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; diff --git a/layout/tables/nsTableOuterFrame.cpp b/layout/tables/nsTableOuterFrame.cpp index 84396441f303..84c7ba75c5c6 100644 --- a/layout/tables/nsTableOuterFrame.cpp +++ b/layout/tables/nsTableOuterFrame.cpp @@ -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;