summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-27 16:01:54 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-27 16:01:54 -0500
commit7cf07296a23e71bbb4277c4f6c6b1da00cd6bf4c (patch)
tree2dc1a4dceda223d07bba6015bd8d5a2093666ad1 /system
parent2af0aa91e0ed0e6a8e3f0759e43272a92ebfd22e (diff)
downloadaura-central-7cf07296a23e71bbb4277c4f6c6b1da00cd6bf4c.tar.gz
[DOM/Layout/System:Image] Remove use counters telemetry
Diffstat (limited to 'system')
-rw-r--r--system/image/DynamicImage.cpp6
-rw-r--r--system/image/ImageWrapper.cpp6
-rw-r--r--system/image/RasterImage.cpp6
-rw-r--r--system/image/VectorImage.cpp10
-rw-r--r--system/image/imgIContainer.idl11
5 files changed, 1 insertions, 38 deletions
diff --git a/system/image/DynamicImage.cpp b/system/image/DynamicImage.cpp
index aeb1fcf78..dfdc3e5d8 100644
--- a/system/image/DynamicImage.cpp
+++ b/system/image/DynamicImage.cpp
@@ -337,11 +337,5 @@ DynamicImage::Unwrap()
return self.forget();
}
-void
-DynamicImage::PropagateUseCounters(nsIDocument*)
-{
- // No use counters.
-}
-
} // namespace image
} // namespace mozilla
diff --git a/system/image/ImageWrapper.cpp b/system/image/ImageWrapper.cpp
index 5ed6c7817..7d2fbfa36 100644
--- a/system/image/ImageWrapper.cpp
+++ b/system/image/ImageWrapper.cpp
@@ -291,12 +291,6 @@ ImageWrapper::SetAnimationStartTime(const TimeStamp& aTime)
mInnerImage->SetAnimationStartTime(aTime);
}
-void
-ImageWrapper::PropagateUseCounters(nsIDocument* aParentDocument)
-{
- mInnerImage->PropagateUseCounters(aParentDocument);
-}
-
nsIntSize
ImageWrapper::OptimalImageSizeForDest(const gfxSize& aDest,
uint32_t aWhichFrame,
diff --git a/system/image/RasterImage.cpp b/system/image/RasterImage.cpp
index eff6cb7b3..4fd3797bb 100644
--- a/system/image/RasterImage.cpp
+++ b/system/image/RasterImage.cpp
@@ -1661,12 +1661,6 @@ RasterImage::Unwrap()
return self.forget();
}
-void
-RasterImage::PropagateUseCounters(nsIDocument*)
-{
- // No use counters.
-}
-
IntSize
RasterImage::OptimalImageSizeForDest(const gfxSize& aDest, uint32_t aWhichFrame,
SamplingFilter aSamplingFilter, uint32_t aFlags)
diff --git a/system/image/VectorImage.cpp b/system/image/VectorImage.cpp
index 3fcb296f5..59b31be47 100644
--- a/system/image/VectorImage.cpp
+++ b/system/image/VectorImage.cpp
@@ -34,7 +34,6 @@
#include "SVGDocumentWrapper.h"
#include "nsIDOMEventListener.h"
#include "SurfaceCache.h"
-#include "nsDocument.h"
// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
#undef GetCurrentTime
@@ -1328,15 +1327,6 @@ VectorImage::InvalidateObserversOnNextRefreshDriverTick()
}
}
-void
-VectorImage::PropagateUseCounters(nsIDocument* aParentDocument)
-{
- nsIDocument* doc = mSVGDocumentWrapper->GetDocument();
- if (doc) {
- doc->PropagateUseCounters(aParentDocument);
- }
-}
-
nsIntSize
VectorImage::OptimalImageSizeForDest(const gfxSize& aDest,
uint32_t aWhichFrame,
diff --git a/system/image/imgIContainer.idl b/system/image/imgIContainer.idl
index ba1c494af..ce663a73e 100644
--- a/system/image/imgIContainer.idl
+++ b/system/image/imgIContainer.idl
@@ -19,8 +19,6 @@
#include "nsSize.h"
#include "limits.h"
-class nsIDocument;
-
namespace mozilla {
namespace layers {
class LayerManager;
@@ -67,7 +65,6 @@ native Orientation(mozilla::image::Orientation);
native TempRefSourceSurface(already_AddRefed<mozilla::gfx::SourceSurface>);
native TempRefImgIContainer(already_AddRefed<imgIContainer>);
native nsIntSizeByVal(nsIntSize);
-[ptr] native nsIDocument(nsIDocument);
/**
@@ -77,7 +74,7 @@ native nsIntSizeByVal(nsIntSize);
*
* Internally, imgIContainer also manages animation of images.
*/
-[scriptable, builtinclass, uuid(a8dbee24-ff86-4755-b40e-51175caf31af)]
+[scriptable, builtinclass, uuid(7ba72242-28da-4c5f-b53f-54da8874775e)]
interface imgIContainer : nsISupports
{
/**
@@ -542,10 +539,4 @@ interface imgIContainer : nsISupports
* Removes any ImageWrappers and returns the unwrapped base image.
*/
[notxpcom, nostdcall] TempRefImgIContainer unwrap();
-
- /*
- * Propagate the use counters (if any) from this container to the passed in
- * document.
- */
- [noscript, notxpcom] void propagateUseCounters(in nsIDocument aDocument);
};