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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics 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/platform/graphics/paint/DisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
index d46c21841377d670912c9999e3c1a84454f444b7..eae045d2ef5680049d4aa7f01e1d86429f74d490 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
@@ -232,7 +232,7 @@ class PLATFORM_EXPORT DisplayItem {
virtual void replay(GraphicsContext&) const {}
const DisplayItemClient& client() const {
- ASSERT(m_client);
+ DCHECK(m_client);
return *m_client;
}
Type getType() const { return m_type; }
@@ -267,12 +267,12 @@ class PLATFORM_EXPORT DisplayItem {
"Categories " #Category1 " and " #Category2 \
" should have same number of enum values. See comments of " \
"DisplayItem::Type"); \
- ASSERT(is##Category1##Type(type)); \
+ DCHECK(is##Category1##Type(type)); \
return static_cast<Type>(type - k##Category1##First + \
k##Category2##First); \
} \
static Type category2##TypeTo##Category1##Type(Type type) { \
- ASSERT(is##Category2##Type(type)); \
+ DCHECK(is##Category2##Type(type)); \
return static_cast<Type>(type - k##Category2##First + \
k##Category1##First); \
}

Powered by Google App Engine
This is Rietveld 408576698