зеркало из https://github.com/mozilla/gecko-dev.git
fix a coding error in the patch for bug 339246 bug 343588 r/sr=bzbarsky
This commit is contained in:
Родитель
2c35fc2818
Коммит
103658af2a
|
@ -770,7 +770,7 @@ nsTableCellMap::RebuildConsideringRows(nsCellMap* aCellMap,
|
|||
PRInt32 rowCount = 0;
|
||||
while (cellMap) {
|
||||
if (cellMap == aCellMap) {
|
||||
cellMap->RebuildConsideringRows(*this, numOrigCols, aStartRowIndex, aRowsToInsert, aNumRowsToRemove, aDamageArea);
|
||||
cellMap->RebuildConsideringRows(*this, aStartRowIndex, aRowsToInsert, aNumRowsToRemove, aDamageArea);
|
||||
}
|
||||
else {
|
||||
cellMap->RebuildConsideringCells(*this, numOrigCols, nsnull, -1, 0, PR_FALSE, aDamageArea);
|
||||
|
@ -2025,7 +2025,6 @@ void nsCellMap::ShrinkWithoutCell(nsTableCellMap& aMap,
|
|||
|
||||
void
|
||||
nsCellMap::RebuildConsideringRows(nsTableCellMap& aMap,
|
||||
PRInt32 aNumOrigCols,
|
||||
PRInt32 aStartRowIndex,
|
||||
nsVoidArray* aRowsToInsert,
|
||||
PRBool aNumRowsToRemove,
|
||||
|
@ -2061,7 +2060,7 @@ nsCellMap::RebuildConsideringRows(nsTableCellMap& aMap,
|
|||
for (rowX = 0; rowX < copyEndRowIndex; rowX++) {
|
||||
nsVoidArray* row = (nsVoidArray *)origRows[rowX];
|
||||
PRInt32 numCols = row->Count();
|
||||
for (colX = 0; colX < aNumOrigCols; colX++) {
|
||||
for (colX = 0; colX < numCols; colX++) {
|
||||
// put in the original cell from the cell map
|
||||
CellData* data = (CellData*) row->ElementAt(colX);
|
||||
if (data && data->IsOrig()) {
|
||||
|
|
|
@ -416,7 +416,6 @@ protected:
|
|||
nsRect& aDamageArea);
|
||||
|
||||
void RebuildConsideringRows(nsTableCellMap& aMap,
|
||||
PRInt32 aNumOrigCols,
|
||||
PRInt32 aStartRowIndex,
|
||||
nsVoidArray* aRowsToInsert,
|
||||
PRInt32 aNumRowsToRemove,
|
||||
|
|
Загрузка…
Ссылка в новой задаче