Make sure to not process counter/quote changes during a restyle. Bug 317948,

r+sr=dbaron
This commit is contained in:
bzbarsky@mit.edu
2005-11-27 22:20:09 +00:00
parent c9def765e4
commit 53e7c650d9

View File

@@ -13250,6 +13250,10 @@ nsCSSFrameConstructor::ProcessPendingRestyles()
// already processing, sending us into an infinite loop.
mPendingRestyles.Clear();
// Make sure to not rebuild quote or counter lists while we're
// processing restyles
BeginUpdate();
for (nsCSSFrameConstructor::RestyleEnumerateData* currentRestyle =
restylesToProcess;
currentRestyle != lastRestyle;
@@ -13261,6 +13265,8 @@ nsCSSFrameConstructor::ProcessPendingRestyles()
delete [] restylesToProcess;
EndUpdate();
#ifdef DEBUG
mPresShell->VerifyStyleTree();
#endif