Bug 1362876 - Use reserved storage for 10 FloatInfo objects on the stack in nsFloatManager::mFloats; r=dbaron

This commit is contained in:
Ehsan Akhgari 2017-05-07 16:53:01 -04:00
Родитель 5e0d8b7dc6
Коммит b90cfcb8ef
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -596,7 +596,7 @@ private:
// Translation from local to global coordinate space.
nscoord mLineLeft, mBlockStart;
nsTArray<FloatInfo> mFloats;
AutoTArray<FloatInfo, 10> mFloats;
nsIntervalSet mFloatDamage;
// Did we try to place a float that could not fit at all and had to be