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

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

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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: Source/core/html/canvas/WebGLRenderingContext.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
index 6ae694cdcb6823aeb2ee23c43cba594cfb7ff92c..c760626eab52bd1ca20575d457c67c2df40314c5 100644
--- a/Source/core/html/canvas/WebGLRenderingContext.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
@@ -162,7 +162,7 @@ void WebGLRenderingContext::activateContext(WebGLRenderingContext* context)
void WebGLRenderingContext::deactivateContext(WebGLRenderingContext* context, bool addToEvictedList)
{
size_t position = activeContexts().find(context);
- if (position != WTF::notFound)
+ if (position != WTF::kNotFound)
activeContexts().remove(position);
if (addToEvictedList && !forciblyEvictedContexts().contains(context))
@@ -172,7 +172,7 @@ void WebGLRenderingContext::deactivateContext(WebGLRenderingContext* context, bo
void WebGLRenderingContext::willDestroyContext(WebGLRenderingContext* context)
{
size_t position = forciblyEvictedContexts().find(context);
- if (position != WTF::notFound)
+ if (position != WTF::kNotFound)
forciblyEvictedContexts().remove(position);
deactivateContext(context, false);
@@ -5481,7 +5481,7 @@ void WebGLRenderingContext::synthesizeGLError(GC3Denum error, const char* functi
if (!isContextLost())
m_context->synthesizeGLError(error);
else {
- if (lost_context_errors_.find(error) == WTF::notFound)
+ if (lost_context_errors_.find(error) == WTF::kNotFound)
lost_context_errors_.append(error);
}
InspectorInstrumentation::didFireWebGLError(canvas(), errorType);
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/parser/HTMLFormattingElementList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698