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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentLifecycle.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/DocumentLifecycle.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
index 72211379cae4ebb06500584bd6a8d00c44ee8c04..f68a509f2c66ca3a4cdde296a33d6417eaf63f96 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -72,7 +72,7 @@ DocumentLifecycle::AllowThrottlingScope::AllowThrottlingScope(DocumentLifecycle&
DocumentLifecycle::AllowThrottlingScope::~AllowThrottlingScope()
{
- ASSERT(s_allowThrottlingCount > 0);
+ DCHECK_GT(s_allowThrottlingCount, 0u);
s_allowThrottlingCount--;
}
@@ -276,7 +276,7 @@ void DocumentLifecycle::advanceTo(LifecycleState nextState)
void DocumentLifecycle::ensureStateAtMost(LifecycleState state)
{
- ASSERT(state == VisualUpdatePending || state == StyleClean || state == LayoutClean);
+ DCHECK(state == VisualUpdatePending || state == StyleClean || state == LayoutClean);
if (m_state <= state)
return;
#if DCHECK_IS_ON()
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.h ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698