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:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user