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

Unified Diff: third_party/WebKit/Source/core/dom/QualifiedName.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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 | « third_party/WebKit/Source/core/dom/QualifiedName.h ('k') | third_party/WebKit/Source/core/dom/Range.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/QualifiedName.cpp
diff --git a/third_party/WebKit/Source/core/dom/QualifiedName.cpp b/third_party/WebKit/Source/core/dom/QualifiedName.cpp
index ba47d0d21f811831bea213c9494df8b698346c66..a109ce54805fba1d36224cb1aa99a14116adebfa 100644
--- a/third_party/WebKit/Source/core/dom/QualifiedName.cpp
+++ b/third_party/WebKit/Source/core/dom/QualifiedName.cpp
@@ -43,7 +43,7 @@ using QualifiedNameCache = HashSet<QualifiedName::QualifiedNameImpl*, QualifiedN
static QualifiedNameCache& qualifiedNameCache()
{
// This code is lockless and thus assumes it all runs on one thread!
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
static QualifiedNameCache* gNameCache = new QualifiedNameCache;
return *gNameCache;
}
@@ -103,7 +103,7 @@ DEFINE_GLOBAL(QualifiedName, nullName, nullAtom, nullAtom, nullAtom)
void QualifiedName::initAndReserveCapacityForSize(unsigned size)
{
- ASSERT(starAtom.impl());
+ DCHECK(starAtom.impl());
qualifiedNameCache().reserveCapacityForSize(size + 2 /*starAtom and nullAtom */);
new ((void*)&anyName) QualifiedName(nullAtom, starAtom, starAtom, true );
new ((void*)&nullName) QualifiedName(nullAtom, nullAtom, nullAtom, true );
« no previous file with comments | « third_party/WebKit/Source/core/dom/QualifiedName.h ('k') | third_party/WebKit/Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698