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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.h

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 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/layout/LayoutView.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.h b/third_party/WebKit/Source/core/layout/LayoutView.h
index 4830129b7ce149883f55d0012282b8665ef21c25..bff0e8c025a364cf4718b455d8007bcceacda45b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.h
+++ b/third_party/WebKit/Source/core/layout/LayoutView.h
@@ -208,7 +208,7 @@ class CORE_EXPORT LayoutView final : public LayoutBlockFlow {
// needed. Long term we should rewrite the counter and quotes code.
void addLayoutCounter() { m_layoutCounterCount++; }
void removeLayoutCounter() {
- ASSERT(m_layoutCounterCount > 0);
+ DCHECK_GT(m_layoutCounterCount, 0u);
m_layoutCounterCount--;
}
bool hasLayoutCounters() { return m_layoutCounterCount; }
@@ -224,7 +224,7 @@ class CORE_EXPORT LayoutView final : public LayoutBlockFlow {
m_layoutState = &layoutState;
}
void popLayoutState() {
- ASSERT(m_layoutState);
+ DCHECK(m_layoutState);
m_layoutState = m_layoutState->next();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698