Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index 30bbfb60471b676149248a759578b65294d682a0..88ed17303a5776d7e5e3937257aa4d6cc3d1fe64 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -467,7 +467,7 @@ String HTMLCanvasElement::toDataURLInternal(const String& mimeType, const double |
String encodingMimeType = toEncodingMimeType(mimeType); |
if (!m_context) { |
RefPtrWillBeRawPtr<ImageData> imageData = ImageData::create(m_size); |
- return ImageDataToDataURL(ImageDataBuffer(imageData->size(), imageData->data()), encodingMimeType, quality); |
+ return ImageDataBuffer(imageData->size(), imageData->data()->data()).toDataURL(encodingMimeType, quality); |
} |
if (m_context->is3d()) { |
@@ -475,7 +475,7 @@ String HTMLCanvasElement::toDataURLInternal(const String& mimeType, const double |
RefPtrWillBeRawPtr<ImageData> imageData = |
toWebGLRenderingContext(m_context.get())->paintRenderingResultsToImageData(sourceBuffer); |
if (imageData) |
- return ImageDataToDataURL(ImageDataBuffer(imageData->size(), imageData->data()), encodingMimeType, quality); |
+ return ImageDataBuffer(imageData->size(), imageData->data()->data()).toDataURL(encodingMimeType, quality); |
m_context->paintRenderingResultsToCanvas(sourceBuffer); |
} |