b=17573. Changed mRowIndex to be signed integer (was unsigned integer) but

field. This allows it be negative, which some of the table code is depending
on


git-svn-id: svn://10.0.0.236/trunk@52358 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-10-31 03:15:52 +00:00
parent 9c83cbc655
commit 248afe72e1
2 changed files with 8 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ struct RowReflowState {
#define NS_TABLE_ROW_FRAME_INITIALIZED_CHILDREN 0x80000000 // set if child cells have been
// added to the table
#define NS_TABLE_MAX_ROW_INDEX (1<<20)
#define NS_TABLE_MAX_ROW_INDEX (1<<19)
/**
* nsTableRowFrame is the frame that maps table rows
@@ -293,7 +293,7 @@ protected:
public:
struct RowBits {
unsigned mRowIndex:20;
int mRowIndex:20;
unsigned mMinRowSpan:12; // the smallest row span among all my child cells
};
@@ -313,9 +313,8 @@ inline PRInt32 nsTableRowFrame::GetRowIndex() const
inline void nsTableRowFrame::SetRowIndex (int aRowIndex)
{
NS_PRECONDITION((aRowIndex >= 0) && (aRowIndex < NS_TABLE_MAX_ROW_INDEX),
"unexpected row index");
mBits.mRowIndex = unsigned(aRowIndex);
NS_PRECONDITION(aRowIndex < NS_TABLE_MAX_ROW_INDEX, "unexpected row index");
mBits.mRowIndex = aRowIndex;
}
inline void nsTableRowFrame::ResetInitChildren()

View File

@@ -61,7 +61,7 @@ struct RowReflowState {
#define NS_TABLE_ROW_FRAME_INITIALIZED_CHILDREN 0x80000000 // set if child cells have been
// added to the table
#define NS_TABLE_MAX_ROW_INDEX (1<<20)
#define NS_TABLE_MAX_ROW_INDEX (1<<19)
/**
* nsTableRowFrame is the frame that maps table rows
@@ -293,7 +293,7 @@ protected:
public:
struct RowBits {
unsigned mRowIndex:20;
int mRowIndex:20;
unsigned mMinRowSpan:12; // the smallest row span among all my child cells
};
@@ -313,9 +313,8 @@ inline PRInt32 nsTableRowFrame::GetRowIndex() const
inline void nsTableRowFrame::SetRowIndex (int aRowIndex)
{
NS_PRECONDITION((aRowIndex >= 0) && (aRowIndex < NS_TABLE_MAX_ROW_INDEX),
"unexpected row index");
mBits.mRowIndex = unsigned(aRowIndex);
NS_PRECONDITION(aRowIndex < NS_TABLE_MAX_ROW_INDEX, "unexpected row index");
mBits.mRowIndex = aRowIndex;
}
inline void nsTableRowFrame::ResetInitChildren()