mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 720142 - Avoid calling GetFirstInFlow() on the row group twice. r=bernd
This commit is contained in:
parent
8b4cba6616
commit
86f6e9f346
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user