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

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

Issue 183253003: Consistently use ExceptionState::throwTypeError(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « Source/core/dom/MutationObserver.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | 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 498884cb78bf4cbfea50cd69c0c751ff2c87cf63..c59b8dd714a5b480fdba7bf32ed3c3966c15b896 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -579,7 +579,7 @@ void CanvasRenderingContext2D::setCurrentTransform(PassRefPtr<SVGMatrixTearOff>
// FIXME: bindings should do null checking and throw: http://crbug.com/321518
if (!matrixTearOff) {
- exceptionState.throwDOMException(TypeError, "currentTransform only accepts a SVGMatrix.");
+ exceptionState.throwTypeError("currentTransform only accepts a SVGMatrix.");
return;
}
« no previous file with comments | « Source/core/dom/MutationObserver.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698