Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug
☠☠ backed out by 8d89bfeb0b2f ☠ ☠
authorLiang-Heng Chen <xeonchen@gmail.com>
Thu, 30 Aug 2018 20:21:44 +0000
changeset 491982 9370432b26adcd6399e586190a47d4c8a8cdc56d
parent 491981 953cfa4e5a85bc7126c1500eb537765e9b785aaa
child 491983 c476aa79a8ca991dc8ea1e5c2eab98e442dad406
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1485400
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug separate tracker counter API Differential Revision: https://phabricator.services.mozilla.com/D4490
dom/base/nsIDocument.h
--- a/dom/base/nsIDocument.h
+++ b/dom/base/nsIDocument.h
@@ -3550,24 +3550,26 @@ public:
   }
 
   void DecrementIgnoreOpensDuringUnloadCounter()
   {
     MOZ_ASSERT(mIgnoreOpensDuringUnloadCounter);
     --mIgnoreOpensDuringUnloadCounter;
   }
 
-  void IncrementTrackerCount(bool aIsTrackerBlocked)
+  void IncrementTrackerCount()
   {
     MOZ_ASSERT(!GetSameTypeParentDocument());
-
     ++mNumTrackersFound;
-    if (aIsTrackerBlocked) {
-      ++mNumTrackersBlocked;
-    }
+  }
+
+  void IncrementTrackerBlockedCount()
+  {
+    MOZ_ASSERT(!GetSameTypeParentDocument());
+    ++mNumTrackersBlocked;
   }
 
   uint32_t NumTrackersFound()
   {
     MOZ_ASSERT(!GetSameTypeParentDocument() || mNumTrackersFound == 0);
 
     return mNumTrackersFound;
   }