From ab384ef8f9d4ba993520ff810b733da3edacb44c Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sun, 27 Nov 2005 22:20:09 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 3a39b6682c8..3cea7adf3a8 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -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