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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl

Issue 1775613002: Throw a RangeError exception from get/createImageData when out of memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix assert in test Created 4 years, 9 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/modules/canvas2d/CanvasRenderingContext2D.idl
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
index a2a897c6b8c639aa29cfba14f54948bf8da023b1..997969a05a60d81069eea8c394e00590d3c7d0a4 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
@@ -116,7 +116,7 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
[RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions();
// pixel manipulation
- ImageData createImageData(ImageData imagedata);
+ [RaisesException] ImageData createImageData(ImageData imagedata);
[RaisesException] ImageData createImageData(double sw, double sh);
[RaisesException] ImageData getImageData(double sx, double sy, double sw, double sh);
[RaisesException] void putImageData(ImageData imagedata, double dx, double dy);

Powered by Google App Engine
This is Rietveld 408576698