From 10a156ca776cffec621363444382ccfb1dca0f38 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Wed, 2 Feb 2000 00:56:02 +0000 Subject: [PATCH] new regression test --- layout/html/tests/table/bugs/bug17826.html | 340 +++++++++++++++++++++ layout/html/tests/table/bugs/file_list.txt | 1 + 2 files changed, 341 insertions(+) create mode 100644 layout/html/tests/table/bugs/bug17826.html diff --git a/layout/html/tests/table/bugs/bug17826.html b/layout/html/tests/table/bugs/bug17826.html new file mode 100644 index 000000000000..633802d597fb --- /dev/null +++ b/layout/html/tests/table/bugs/bug17826.html @@ -0,0 +1,340 @@ + + +BasicTableLayoutStrategy.cpp + + + +

BasicTableLayoutStrategy.cpp - Revision 3.152

+There were 4 changes made.
+ +
+Legend + + + + +
   Added lines
   Changed lines
   Removed lines
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BasicTableLayoutStrategy.cpp,3.152
Disk File
Skipping to line 27 
+
#include "nsIStyleContext.h"
+
#include "nsIStyleContext.h"
+
#include "nsStyleConsts.h"
+
#include "nsStyleConsts.h"
+
#include "nsVoidArray.h"
+
#include "nsVoidArray.h"
+
#include "nsHTMLIIDs.h"
+
#include "nsHTMLIIDs.h"
+
 
+
 
+
#if 1
+
#if 0
+
static PRBool gsDebugAssign  = PR_FALSE;
+
static PRBool gsDebugAssign  = PR_FALSE;
+
static PRBool gsDebugBalance = PR_FALSE;
+
static PRBool gsDebugBalance = PR_FALSE;
+
#else
+
#else
+
static PRBool gsDebugAssign  = PR_TRUE;
+
static PRBool gsDebugAssign  = PR_TRUE;
+
static PRBool gsDebugBalance = PR_TRUE;
+
static PRBool gsDebugBalance = PR_TRUE;
Skipping to line 39 
+
 
+
static PRInt32 gsDebugCount = 0;
+
 
+
 
+
PRBool CanAllocate(PRInt32          aTypeToAllocate,
+
PRBool CanAllocate(PRInt32          aTypeToAllocate,
+
                   PRInt32          aTypeAlreadyAllocated,
+
                   PRInt32          aTypeAlreadyAllocated,
+
                   nsTableColFrame* aColFrame,
+
                   nsTableColFrame* aColFrame,
+
                   PRBool&          aConsiderAdj)
+
                   PRBool&          aConsiderAdj)
Skipping to line 164 
+
BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext*          aPresContext,
+
BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext*          aPresContext,
+
                                              nsIStyleContext*         aTableStyle,
+
                                              nsIStyleContext*         aTableStyle,
+
                                              const nsHTMLReflowState& aReflowState,
+
                                              const nsHTMLReflowState& aReflowState,
+
                                              nscoord                  aMaxWidthIn)
+
                                              nscoord                  aMaxWidthIn)
+
{
+
{
+
  if (gsDebugBalance) {printf("BalanceColumnWidths en max=%d\n", aMaxWidthIn); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}
+
  if (gsDebugBalance) {printf("BalanceColumnWidths en max=%d count=%d \n", aMaxWidthIn, gsDebugCount++); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}
+
 
+
 
+
  ContinuingFrameCheck();
+
  ContinuingFrameCheck();
+
  if (!aTableStyle) {
+
  if (!aTableStyle) {
+
    NS_ASSERTION(aTableStyle, "bad style arg");
+
    NS_ASSERTION(aTableStyle, "bad style arg");
+
    return PR_FALSE;
+
    return PR_FALSE;
Skipping to line 696 
+
// Determine min, desired, fixed, and proportional sizes for the cols and 
+
// Determine min, desired, fixed, and proportional sizes for the cols and 
+
// and calculate min/max table width
+
// and calculate min/max table width
+
PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nsIPresContext* aPresContext,
+
PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nsIPresContext* aPresContext,
+
                                                               nscoord         aMaxWidth)
+
                                                               nscoord         aMaxWidth)
+
{
+
{
+
  if (gsDebugAssign) {printf("AssignPrelimColWidths en max=%d\n", aMaxWidth); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}
+
  if (gsDebugAssign) {printf("AssignPrelimColWidths en max=%d count=%d \n", aMaxWidth, gsDebugCount++); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}
+
  PRBool rv = PR_FALSE;
+
  PRBool rv = PR_FALSE;
+
  PRInt32 numRows = mTableFrame->GetRowCount();
+
  PRInt32 numRows = mTableFrame->GetRowCount();
+
  PRInt32 numCols = mTableFrame->GetColCount();
+
  PRInt32 numCols = mTableFrame->GetColCount();
+
  nscoord spacingX = mTableFrame->GetCellSpacingX();
+
  nscoord spacingX = mTableFrame->GetCellSpacingX();
+
  PRInt32 colX, rowX; 
+
  PRInt32 colX, rowX; 
diff --git a/layout/html/tests/table/bugs/file_list.txt b/layout/html/tests/table/bugs/file_list.txt index 7e8e6bcebff3..3f2e7cbee61a 100644 --- a/layout/html/tests/table/bugs/file_list.txt +++ b/layout/html/tests/table/bugs/file_list.txt @@ -58,6 +58,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug17138.html file:///s|/mozilla/layout/html/tests/table/bugs/bug17168.html file:///s|/mozilla/layout/html/tests/table/bugs/bug17548.html file:///s|/mozilla/layout/html/tests/table/bugs/bug17587.html +file:///s|/mozilla/layout/html/tests/table/bugs/bug17826.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1800.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1809.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-1.html