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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.h

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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: third_party/WebKit/Source/core/html/HTMLCollection.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.h b/third_party/WebKit/Source/core/html/HTMLCollection.h
index b96c8d9867499238bf27cb27f7276f4d7e852198..079e2cca29df6d598985817aa75c08a9f30b34e3 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.h
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.h
@@ -114,7 +114,7 @@ protected:
void setNamedItemCache(NamedItemCache* cache) const
{
- ASSERT(!m_namedItemCache);
+ DCHECK(!m_namedItemCache);
// Do not repeat registration for the same invalidation type.
if (invalidationType() != InvalidateOnIdNameAttrChange)
document().registerNodeListWithIdNameCache(this);
@@ -123,7 +123,7 @@ protected:
NamedItemCache& namedItemCache() const
{
- ASSERT(m_namedItemCache);
+ DCHECK(m_namedItemCache);
return *m_namedItemCache;
}
@@ -143,7 +143,7 @@ private:
void unregisterIdNameCacheFromDocument(Document& document) const
{
- ASSERT(hasValidIdNameCache());
+ DCHECK(hasValidIdNameCache());
// Do not repeat unregistration for the same invalidation type.
if (invalidationType() != InvalidateOnIdNameAttrChange)
document.unregisterNodeListWithIdNameCache(this);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLButtonElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698