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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 331803004: context.addHitRegion should return if the DOMException occurs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index de7a380d673a8cd3a323a79cf499aaecd6e609af..d9ae2a31615f5c3f2407cf01fc68e8f9f5a2e094 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -2393,6 +2393,7 @@ void CanvasRenderingContext2D::addHitRegion(const Dictionary& options, Exception
// However, we have no way to get the region from canvas state stack by now.
// See http://crbug.com/387057
exceptionState.throwDOMException(NotSupportedError, "The specified path has no pixels.");
+ return;
}
passOptions.path = specifiedPath;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698