Bug 1362880 - Reserve storage for 10 RowInfo objects in nsTableRowGroupFrame::CalculateRowBSizes(); r=dbaron

This commit is contained in:
Ehsan Akhgari 2017-05-07 17:12:16 -04:00
Родитель 6166881c14
Коммит 84a1f50b35
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -595,7 +595,7 @@ nsTableRowGroupFrame::CalculateRowBSizes(nsPresContext* aPresContext,
if (numRows <= 0)
return;
nsTArray<RowInfo> rowInfo;
AutoTArray<RowInfo, 10> rowInfo;
if (!rowInfo.AppendElements(numRows)) {
return;
}