From aa9be56cfa0141b679bd3d57da06306aec5ad2c4 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Tue, 5 Oct 1999 04:21:00 +0000 Subject: [PATCH] bug 14818 - made standard mode like NavQuirks when handling colspans exceeding the number of columns. git-svn-id: svn://10.0.0.236/trunk@49801 18797224-902f-48f8-a5cc-f745e15eee43 --- .../html/table/src/nsTableCellFrame.cpp | 20 +++++++++---------- mozilla/layout/tables/nsTableCellFrame.cpp | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/mozilla/layout/html/table/src/nsTableCellFrame.cpp b/mozilla/layout/html/table/src/nsTableCellFrame.cpp index c9b9dff46b6..7c1078442d1 100644 --- a/mozilla/layout/html/table/src/nsTableCellFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableCellFrame.cpp @@ -673,18 +673,18 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext, if (border.right > 0) smallestMinWidth += onePixel; } - PRInt32 colspan = GetColSpan(); - if (colspan > 1) { - smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel); - nscoord spacingX = tableFrame->GetCellSpacingX(); - nscoord spacingExtra = spacingX * (colspan - 1); - smallestMinWidth += spacingExtra; - if (padding.left > 0) { - smallestMinWidth -= onePixel; - } + } + PRInt32 colspan = GetColSpan(); + if (colspan > 1) { + smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel); + nscoord spacingX = tableFrame->GetCellSpacingX(); + nscoord spacingExtra = spacingX * (colspan - 1); + smallestMinWidth += spacingExtra; + if (padding.left > 0) { + smallestMinWidth -= onePixel; } } - + if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) { // empty content has to be forced to the assigned width for resize or incremental reflow kidSize.width = kidReflowState.availableWidth; diff --git a/mozilla/layout/tables/nsTableCellFrame.cpp b/mozilla/layout/tables/nsTableCellFrame.cpp index c9b9dff46b6..7c1078442d1 100644 --- a/mozilla/layout/tables/nsTableCellFrame.cpp +++ b/mozilla/layout/tables/nsTableCellFrame.cpp @@ -673,18 +673,18 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext, if (border.right > 0) smallestMinWidth += onePixel; } - PRInt32 colspan = GetColSpan(); - if (colspan > 1) { - smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel); - nscoord spacingX = tableFrame->GetCellSpacingX(); - nscoord spacingExtra = spacingX * (colspan - 1); - smallestMinWidth += spacingExtra; - if (padding.left > 0) { - smallestMinWidth -= onePixel; - } + } + PRInt32 colspan = GetColSpan(); + if (colspan > 1) { + smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel); + nscoord spacingX = tableFrame->GetCellSpacingX(); + nscoord spacingExtra = spacingX * (colspan - 1); + smallestMinWidth += spacingExtra; + if (padding.left > 0) { + smallestMinWidth -= onePixel; } } - + if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) { // empty content has to be forced to the assigned width for resize or incremental reflow kidSize.width = kidReflowState.availableWidth;