summaryrefslogtreecommitdiffstats
path: root/image/RasterImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/RasterImage.cpp')
-rw-r--r--image/RasterImage.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/image/RasterImage.cpp b/image/RasterImage.cpp
index 775238b460..06e44bda01 100644
--- a/image/RasterImage.cpp
+++ b/image/RasterImage.cpp
@@ -480,12 +480,7 @@ void RasterImage::OnSurfaceDiscarded(const SurfaceKey& aSurfaceKey) {
bool animatedFramesDiscarded =
mAnimationState && aSurfaceKey.Playback() == PlaybackType::eAnimated;
- nsCOMPtr<nsIEventTarget> eventTarget;
- if (mProgressTracker) {
- eventTarget = mProgressTracker->GetEventTarget();
- } else {
- eventTarget = do_GetMainThread();
- }
+ nsCOMPtr<nsIEventTarget> eventTarget = do_GetMainThread();
RefPtr<RasterImage> image = this;
nsCOMPtr<nsIRunnable> ev =