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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentParser.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
Index: third_party/WebKit/Source/core/dom/DocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentParser.cpp b/third_party/WebKit/Source/core/dom/DocumentParser.cpp
index 856191fe8a672f968c377124ed2959b67a664a58..ca62da445153b95e444feab1e719b08fbbc98c9d 100644
--- a/third_party/WebKit/Source/core/dom/DocumentParser.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentParser.cpp
@@ -37,7 +37,7 @@ DocumentParser::DocumentParser(Document* document)
, m_documentWasLoadedAsPartOfNavigation(false)
, m_document(document)
{
- ASSERT(document);
+ DCHECK(document);
}
DocumentParser::~DocumentParser()
@@ -46,7 +46,7 @@ DocumentParser::~DocumentParser()
// Document is expected to call detach() before releasing its ref.
// This ASSERT is slightly awkward for parsers with a fragment case
// as there is no Document to release the ref.
- ASSERT(!m_document);
+ DCHECK(!m_document);
#endif
}
@@ -68,7 +68,7 @@ TextResourceDecoder* DocumentParser::decoder()
void DocumentParser::prepareToStopParsing()
{
- ASSERT(m_state == ParsingState);
+ DCHECK_EQ(m_state, ParsingState);
m_state = StoppingState;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentParser.h ('k') | third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698