summaryrefslogtreecommitdiff
path: root/image/ImageOps.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-21 13:58:20 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-21 13:58:20 +0100
commit64d65e096bd762bfa54c362a83edd8dcd5ba2e53 (patch)
tree288c5dd4f3be98bfe6eb38bb775eacd84ac10592 /image/ImageOps.cpp
parentd1a0bfe221b91ea37a34d0b0360f347d2a6394e5 (diff)
downloaduxp-64d65e096bd762bfa54c362a83edd8dcd5ba2e53.tar.gz
Make resuming of decoding work for anonymous decoders.
Diffstat (limited to 'image/ImageOps.cpp')
-rw-r--r--image/ImageOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/ImageOps.cpp b/image/ImageOps.cpp
index addee7f155..ddd2f200e5 100644
--- a/image/ImageOps.cpp
+++ b/image/ImageOps.cpp
@@ -126,7 +126,7 @@ ImageOps::DecodeToSurface(nsIInputStream* aInputStream,
}
// Run the decoder synchronously.
- RefPtr<IDecodingTask> task = new AnonymousDecodingTask(WrapNotNull(decoder));
+ RefPtr<IDecodingTask> task = new AnonymousDecodingTask(WrapNotNull(decoder), /* aResumable */ false);
task->Run();
if (!decoder->GetDecodeDone() || decoder->HasError()) {
return nullptr;