mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
expand the cellmap to cover empty content rows when rebuilding the cellmap bug 351326 r/sr=bzbarsky a=mtschrep
This commit is contained in:
parent
7228b88fd0
commit
2821c28b31
@ -2442,7 +2442,7 @@ void nsCellMap::RebuildConsideringCells(nsTableCellMap& aMap,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// delete the old cell map
|
||||
for (rowX = 0; rowX < numOrigRows; rowX++) {
|
||||
CellDataArray& row = origRows[rowX];
|
||||
@ -2451,6 +2451,11 @@ void nsCellMap::RebuildConsideringCells(nsTableCellMap& aMap,
|
||||
DestroyCellData(row.SafeElementAt(colX));
|
||||
}
|
||||
}
|
||||
// expand the cellmap to cover empty content rows
|
||||
if (mRows.Length() < mContentRowCount) {
|
||||
Grow(aMap, mContentRowCount - mRows.Length());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void nsCellMap::RemoveCell(nsTableCellMap& aMap,
|
||||
|
Loading…
Reference in New Issue
Block a user