Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Worked on Review Comments done Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp b/third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp
index 6453bf7bcdc093a994e1263189545b08ec8cc4d9..72852947379349ef719035548317eb27f9385b60 100644
--- a/third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp
+++ b/third_party/WebKit/Source/core/css/parser/MediaQueryBlockWatcher.cpp
@@ -14,7 +14,7 @@ void MediaQueryBlockWatcher::handleToken(const CSSParserToken& token) {
if (token.getBlockType() == CSSParserToken::BlockStart) {
++m_blockLevel;
} else if (token.getBlockType() == CSSParserToken::BlockEnd) {
- ASSERT(m_blockLevel);
+ DCHECK(m_blockLevel);
--m_blockLevel;
}
}

Powered by Google App Engine