Bug 720142 - Avoid calling GetFirstInFlow() on the row group twice. r=bernd

This commit is contained in:
Mats Palmgren 2012-01-22 23:48:34 +01:00
parent 8b4cba6616
commit 86f6e9f346

View File

@ -6436,14 +6436,14 @@ BCPaintBorderIterator::SetNewRowGroup()
if (PRUint32(mRgIndex) < mRowGroups.Length()) {
mPrevRg = mRg;
mRg = mRowGroups[mRgIndex];
mFifRgFirstRowIndex = ((nsTableRowGroupFrame*)mRg->GetFirstInFlow())->GetStartRowIndex();
nsTableRowGroupFrame* fifRg =
static_cast<nsTableRowGroupFrame*>(mRg->GetFirstInFlow());
mFifRgFirstRowIndex = fifRg->GetStartRowIndex();
mRgFirstRowIndex = mRg->GetStartRowIndex();
mRgLastRowIndex = mRgFirstRowIndex + mRg->GetRowCount() - 1;
if (SetNewRow(mRg->GetFirstRow())) {
mCellMap =
mTableCellMap->GetMapFor((nsTableRowGroupFrame*)mRg->GetFirstInFlow(),
nsnull);
mCellMap = mTableCellMap->GetMapFor(fifRg, nsnull);
if (!mCellMap) ABORT1(false);
}
if (mRg && mTable->GetPrevInFlow() && !mRg->GetPrevInFlow()) {