Bug 645572 - Don't let the frame constructor's update count to become negative. r=sicking

This commit is contained in:
Ehsan Akhgari
2011-04-08 14:29:34 -07:00
parent 2aa22b9249
commit c95b9c66d8

View File

@@ -8304,7 +8304,10 @@ nsCSSFrameConstructor::EndUpdate()
RecalcQuotesAndCounters();
NS_ASSERTION(mUpdateCount == 1, "Odd update count");
}
--mUpdateCount;
// Negative update counts don't make sense
if (mUpdateCount > 0) {
--mUpdateCount;
}
}
void