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

Unified Diff: Source/core/html/HTMLFormElement.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/html/HTMLEmbedElement.cpp ('k') | Source/core/html/HTMLImportLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 42b095f73c4b21deba16876cd6551f482d579afe..99fc549dd2cb3d0295e99427c283078679ee9bff 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -578,13 +578,13 @@ bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const
void HTMLFormElement::registerImgElement(HTMLImageElement* e)
{
- ASSERT(m_imageElements.find(e) == notFound);
+ ASSERT(m_imageElements.find(e) == kNotFound);
m_imageElements.append(e);
}
void HTMLFormElement::removeImgElement(HTMLImageElement* e)
{
- ASSERT(m_imageElements.find(e) != notFound);
+ ASSERT(m_imageElements.find(e) != kNotFound);
removeFromPastNamesMap(*e);
removeFromVector(m_imageElements, e);
}
@@ -696,11 +696,11 @@ Node* HTMLFormElement::elementFromPastNamesMap(const AtomicString& pastName) con
return 0;
ASSERT_WITH_SECURITY_IMPLICATION(toHTMLElement(node)->form() == this);
if (node->hasTagName(imgTag)) {
- ASSERT_WITH_SECURITY_IMPLICATION(m_imageElements.find(node) != notFound);
+ ASSERT_WITH_SECURITY_IMPLICATION(m_imageElements.find(node) != kNotFound);
} else if (node->hasTagName(objectTag)) {
- ASSERT_WITH_SECURITY_IMPLICATION(m_associatedElements.find(toHTMLObjectElement(node)) != notFound);
+ ASSERT_WITH_SECURITY_IMPLICATION(m_associatedElements.find(toHTMLObjectElement(node)) != kNotFound);
} else {
- ASSERT_WITH_SECURITY_IMPLICATION(m_associatedElements.find(toHTMLFormControlElement(node)) != notFound);
+ ASSERT_WITH_SECURITY_IMPLICATION(m_associatedElements.find(toHTMLFormControlElement(node)) != kNotFound);
}
#endif
return node;
« no previous file with comments | « Source/core/html/HTMLEmbedElement.cpp ('k') | Source/core/html/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698