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

Unified Diff: Source/core/dom/Element.h

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/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index a1bf613194bdaff5fed7b40ed6d2425a7912a453..9d1ad8343298f90e3eeeaf046391b1f56ad67460 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -1035,7 +1035,7 @@ inline const StylePropertySet* ElementData::presentationAttributeStyle() const
inline const Attribute* ElementData::getAttributeItem(const AtomicString& name, bool shouldIgnoreAttributeCase) const
{
size_t index = getAttributeItemIndex(name, shouldIgnoreAttributeCase);
- if (index != notFound)
+ if (index != kNotFound)
return attributeItem(index);
return 0;
}
@@ -1055,7 +1055,7 @@ inline size_t ElementData::getAttributeItemIndex(const QualifiedName& name, bool
if (attribute.name().matchesPossiblyIgnoringCase(name, shouldIgnoreCase))
return i;
}
- return notFound;
+ return kNotFound;
}
// We use a boolean parameter instead of calling shouldIgnoreAttributeCase so that the caller
@@ -1078,7 +1078,7 @@ inline size_t ElementData::getAttributeItemIndex(const AtomicString& name, bool
if (doSlowCheck)
return getAttributeItemIndexSlowCase(name, shouldIgnoreAttributeCase);
- return notFound;
+ return kNotFound;
}
inline const Attribute* ElementData::getAttributeItem(const QualifiedName& name) const
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698