summaryrefslogtreecommitdiff
path: root/dom/base/nsDOMWindowUtils.cpp
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-04-04 22:54:59 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2022-04-24 00:02:42 +0800
commit17b2aa76508e24b937fc92666bb0513360b103cc (patch)
tree68e865ffc347d36560614e6b68af91e2e96b6b75 /dom/base/nsDOMWindowUtils.cpp
parent5aa65d2aeab36ea8de8129c0babcf70a5e4e662a (diff)
downloaduxp-17b2aa76508e24b937fc92666bb0513360b103cc.tar.gz
Issue #21 - Remove use counters telemetry
This reverts Bug 968923 - Implement some equivalent of Chrome's use counters (on top of telemetry?) For reference: https://bugzilla.mozilla.org/show_bug.cgi?id=968923
Diffstat (limited to 'dom/base/nsDOMWindowUtils.cpp')
-rw-r--r--dom/base/nsDOMWindowUtils.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp
index d05f3b71fc..d38b3c600b 100644
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -104,9 +104,6 @@
#include "nsContentPermissionHelper.h"
#include "nsCSSPseudoElements.h" // for CSSPseudoElementType
#include "nsNetUtil.h"
-#include "nsDocument.h"
-#include "HTMLImageElement.h"
-#include "mozilla/css/ImageLoader.h"
#include "mozilla/layers/APZCTreeManager.h" // for layers::ZoomToRectBehavior
#include "mozilla/dom/Promise.h"
#include "mozilla/StyleSheetInlines.h"
@@ -4026,27 +4023,6 @@ nsDOMWindowUtils::LeaveChaosMode()
}
NS_IMETHODIMP
-nsDOMWindowUtils::ForceUseCounterFlush(nsIDOMNode *aNode)
-{
- NS_ENSURE_ARG_POINTER(aNode);
-
- if (nsCOMPtr<nsIDocument> doc = do_QueryInterface(aNode)) {
- mozilla::css::ImageLoader* loader = doc->StyleImageLoader();
- loader->FlushUseCounters();
- return NS_OK;
- }
-
- if (nsCOMPtr<nsIContent> content = do_QueryInterface(aNode)) {
- if (HTMLImageElement* img = HTMLImageElement::FromContent(content)) {
- img->FlushUseCounters();
- return NS_OK;
- }
- }
-
- return NS_OK;
-}
-
-NS_IMETHODIMP
nsDOMWindowUtils::HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType,
bool* aRetVal)
{