Make sure to not process counter/quote changes during a restyle. Bug 317948,
r+sr=dbaron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user