| Index: Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
|
| index 492c0912d8324e6ebe948f49ab2677f6f9dea79e..acf5a17571e3e5e63f187dad88795e313dcba9f4 100644
|
| --- a/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -574,7 +574,7 @@ void HTMLCanvasElement::toBlob(FileCallback* callback, const String& mimeType, c
|
| ImageDataBuffer(imageData->size(), imageData->data()->data()).encodeImage(encodingMimeType, qualityPtr, &encodedImage);
|
| resultBlob = File::create(encodedImage.data(), encodedImage.size(), encodingMimeType);
|
|
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, bind(&FileCallback::handleEvent, callback, resultBlob));
|
| + Platform::current()->mainThread()->defaultTaskRunner()->postTask(FROM_HERE, bind(&FileCallback::handleEvent, callback, resultBlob));
|
| }
|
|
|
| SecurityOrigin* HTMLCanvasElement::securityOrigin() const
|
|
|