summaryrefslogtreecommitdiffstats
path: root/image/VectorImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/VectorImage.cpp')
-rw-r--r--image/VectorImage.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/image/VectorImage.cpp b/image/VectorImage.cpp
index b86f396e64..eccd04e3cf 100644
--- a/image/VectorImage.cpp
+++ b/image/VectorImage.cpp
@@ -1557,12 +1557,7 @@ void VectorImage::InvalidateObserversOnNextRefreshDriverTick() {
// set by InvalidateFrameInternal in layout/generic/nsFrame.cpp. These bits
// get cleared when we repaint the SVG into a surface by
// nsIFrame::ClearInvalidationStateBits in nsDisplayList::PaintRoot.
- nsCOMPtr<nsIEventTarget> eventTarget;
- if (mProgressTracker) {
- eventTarget = mProgressTracker->GetEventTarget();
- } else {
- eventTarget = do_GetMainThread();
- }
+ nsCOMPtr<nsIEventTarget> eventTarget = do_GetMainThread();
RefPtr<VectorImage> self(this);
nsCOMPtr<nsIRunnable> ev(NS_NewRunnableFunction(