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