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

Unified Diff: Source/core/dom/CustomElement.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
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CustomElement.cpp
diff --git a/Source/core/dom/CustomElement.cpp b/Source/core/dom/CustomElement.cpp
index ddb8db25171971b4609211cc563e982ad6767c72..d09bafcbea65426ade333f5aaa243bd80e233075 100644
--- a/Source/core/dom/CustomElement.cpp
+++ b/Source/core/dom/CustomElement.cpp
@@ -64,10 +64,10 @@ bool CustomElement::isValidName(const AtomicString& name, NameSet validNames)
{
validNames = NameSet(validNames & enabledNameSet());
- if ((validNames & EmbedderNames) && notFound != embedderCustomElementNames().find(name))
+ if ((validNames & EmbedderNames) && kNotFound != embedderCustomElementNames().find(name))
return Document::isValidName(name);
- if ((validNames & StandardNames) && notFound != name.find('-')) {
+ if ((validNames & StandardNames) && kNotFound != name.find('-')) {
DEFINE_STATIC_LOCAL(Vector<AtomicString>, reservedNames, ());
if (reservedNames.isEmpty()) {
reservedNames.append(MathMLNames::annotation_xmlTag.localName());
@@ -80,7 +80,7 @@ bool CustomElement::isValidName(const AtomicString& name, NameSet validNames)
reservedNames.append(SVGNames::missing_glyphTag.localName());
}
- if (notFound == reservedNames.find(name))
+ if (kNotFound == reservedNames.find(name))
return Document::isValidName(name.string());
}
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698