зеркало из https://github.com/mozilla/gecko-dev.git
Bug 720142 - Avoid calling GetFirstInFlow() on the row group twice. r=bernd
This commit is contained in:
Родитель
c4841a3e7f
Коммит
356e8a3bcf
|
@ -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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче