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

r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185308 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-11-27 22:20:09 +00:00
parent 3564151c32
commit ab384ef8f9

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