Bug 645572 - Don't let the frame constructor's update count to become negative. r=sicking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user