mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
721c59fd1b
commit
02c72c47b5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user