Bug 1429313 - Reuse nextColIndex to avoid extra BCMapCellInfo::GetCellEndRowIndex() calls. r=tylin

MozReview-Commit-ID: 9gbVQNSKl7l
This commit is contained in:
Ya-Chieh Wu
2018-01-10 01:11:00 -05:00
parent 62f03a5a76
commit c0f32f54d8

View File

@@ -6461,7 +6461,7 @@ nsTableFrame::CalcBCBorders()
if ((info.mNumTableCols != nextColIndex) &&
(lastBEndBorders[nextColIndex].rowSpan > 1) &&
(lastBEndBorders[nextColIndex].rowIndex == info.GetCellEndRowIndex() + 1)) {
BCCornerInfo& corner = bEndCorners[info.GetCellEndColIndex() + 1];
BCCornerInfo& corner = bEndCorners[nextColIndex];
if (!IsBlock(LogicalSide(corner.ownerSide))) {
// not a block-dir owner
BCCellBorder& thisBorder = lastBEndBorder;
@@ -6475,7 +6475,7 @@ nsTableFrame::CalcBCBorders()
tableCellMap->ResetBStartStart(eLogicalSideBEnd, *iter.mCellMap,
iter.mRowGroupStart,
info.GetCellEndRowIndex(),
info.GetCellEndColIndex() + 1);
nextColIndex);
}
}
}