Bug 1365602 - Put script blocker to nsCSSFrameConstructor::RecalcQuotesAndCounters for avoiding triggering event from nsQuoteList::RecalcAll. r=bz, a=jcristau
authorXidorn Quan <me@upsuper.org>
Thu, 18 May 2017 11:25:48 +1000
changeset 396345 72da880beaeb8018297ae114eed9d7b04295f06d
parent 396344 9bbb4cd88b37f24ae7ebe42da5b99b428206f093
child 396346 22a02cb46ff22cc1d5428e138a956e349770e4ab
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, jcristau
bugs1365602
milestone54.0
Bug 1365602 - Put script blocker to nsCSSFrameConstructor::RecalcQuotesAndCounters for avoiding triggering event from nsQuoteList::RecalcAll. r=bz, a=jcristau MozReview-Commit-ID: JW0vjT0C5iU
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -8831,16 +8831,18 @@ nsCSSFrameConstructor::EndUpdate()
   NS_ASSERTION(mUpdateCount, "Negative mUpdateCount!");
   --mUpdateCount;
 #endif
 }
 
 void
 nsCSSFrameConstructor::RecalcQuotesAndCounters()
 {
+  nsAutoScriptBlocker scriptBlocker;
+
   if (mQuotesDirty) {
     mQuotesDirty = false;
     mQuoteList.RecalcAll();
   }
 
   if (mCountersDirty) {
     mCountersDirty = false;
     mCounterManager.RecalcAll();