Bug 470167 - 'ASSERTION: Should be in an update while creating frames' with stylesheet appended many times, r+sr=bz

This commit is contained in:
Olli Pettay 2008-12-20 01:35:30 +02:00
Родитель 2a620fc7f7
Коммит c4e089543d
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -10143,6 +10143,7 @@ nsCSSFrameConstructor::EndUpdate()
RecalcQuotesAndCounters(); RecalcQuotesAndCounters();
NS_ASSERTION(mUpdateCount == 1, "Odd update count"); NS_ASSERTION(mUpdateCount == 1, "Odd update count");
} }
--mUpdateCount;
if (mFocusSuppressCount) { if (mFocusSuppressCount) {
NS_UnsuppressFocusEvent(); NS_UnsuppressFocusEvent();
--mFocusSuppressCount; --mFocusSuppressCount;