зеркало из https://github.com/mozilla/gecko-dev.git
take into account overlap situations between row- and colspans, bug 369975 r/sr=bzbarsky
This commit is contained in:
Родитель
fead227122
Коммит
6fe97a58cd
|
@ -2783,11 +2783,11 @@ nsCellMapColumnIterator::GetNextFrame(PRInt32* aRow, PRInt32* aColSpan)
|
|||
}
|
||||
|
||||
if (cellData->IsColSpan()) {
|
||||
// Look up the originating data for this cell, advance by its rowspan.
|
||||
CellData* origData = row[mCol - cellData->GetColSpanOffset()];
|
||||
NS_ASSERTION(origData && origData->IsOrig() && origData->GetCellFrame(),
|
||||
"Must have usable originating data here");
|
||||
IncrementRow(origData->GetCellFrame()->GetRowSpan());
|
||||
// Look up the originating data for this cell, advance by its relative rowspan.
|
||||
PRInt32 rowspanOffset = cellData->GetRowSpanOffset();
|
||||
nsTableCellFrame* cellFrame = mCurMap->GetCellFrame(mCurMapRow, mCol, *cellData, PR_FALSE);
|
||||
NS_ASSERTION(cellFrame,"Must have usable originating data here");
|
||||
IncrementRow(cellFrame->GetRowSpan() - rowspanOffset);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче