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

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

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/track/TextTrack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContext.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
index 1faa49d6fe059b38d7383a1e86631ee593da0d0d..ed8646bf8cdb8bc63559bcb0cec4b5a803c89be3 100644
--- a/Source/core/html/canvas/WebGLRenderingContext.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
@@ -5136,7 +5136,7 @@ bool WebGLRenderingContext::validateHTMLImageElement(const char* functionName, H
return false;
}
if (wouldTaintOrigin(image)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return false;
}
return true;
@@ -5149,7 +5149,7 @@ bool WebGLRenderingContext::validateHTMLCanvasElement(const char* functionName,
return false;
}
if (wouldTaintOrigin(canvas)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return false;
}
return true;
@@ -5162,7 +5162,7 @@ bool WebGLRenderingContext::validateHTMLVideoElement(const char* functionName, H
return false;
}
if (wouldTaintOrigin(video)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return false;
}
return true;
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/track/TextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698