Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverting some behavior changes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index 43d3529cb098008cccd10ed729ab1f9e307609c6..4a2292cfdc92aa88c799fd8310af82735b3a8b28 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -196,8 +196,8 @@ private:
bool paintsIntoCanvasBuffer() const;
- ImageData* toImageData(SourceDrawingBuffer) const;
- String toDataURLInternal(const String& mimeType, const double& quality, SourceDrawingBuffer) const;
+ ImageData* toImageData(SourceDrawingBuffer, ExceptionState&) const;
+ String toDataURLInternal(const String& mimeType, const double& quality, SourceDrawingBuffer, ExceptionState&) const;
static void encodeImageAsync(DOMUint8ClampedArray* imagedata, IntSize imageSize, FileCallback*, const String& mimeType, double quality);
static void createBlobAndCall(PassOwnPtr<Vector<char>> encodedImage, const String& mimeType, FileCallback*);

Powered by Google App Engine
This is Rietveld 408576698