Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug
authorLiang-Heng Chen <xeonchen@gmail.com>
Thu, 30 Aug 2018 20:21:44 +0000
changeset 434343 3897c3140df06d516c3fd8dbf20879b2da8b4caa
parent 434342 56d916d0bfb187bfffc634ea8b10d4f984cc7ed4
child 434344 70042a7ea627ab1c6e299e6790f6c7529f6bdb69
push id107338
push useraciure@mozilla.com
push dateFri, 31 Aug 2018 23:45:51 +0000
treeherdermozilla-inbound@ee4f4e66f861 [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;
   }