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

--HG--
extra : rebase_source : 78cbdf15ff2d9bdd706db66176f65a3e4dc84c14
This commit is contained in:
Ehsan Akhgari 2011-04-08 14:29:34 -07:00
parent 721c59fd1b
commit 02c72c47b5

View File

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