Make sure to be in an update when we do frame construction. Bug 393326, r+sr+a=dbaron

This commit is contained in:
bzbarsky@mit.edu 2007-09-30 20:15:45 -07:00
parent 054ff675b4
commit 4f3efcd53f

View File

@ -9840,6 +9840,10 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
if (!count)
return NS_OK;
// Make sure to not rebuild quote or counter lists while we're
// processing restyles
BeginUpdate();
nsPropertyTable *propTable = mPresShell->GetPresContext()->PropertyTable();
// Mark frames so that we skip frames that die along the way, bug 123049.
@ -9904,6 +9908,8 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
#endif
}
EndUpdate();
// cleanup references
index = count;
while (0 <= --index) {