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

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: fix typo 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 e472c0c89b95678ca43203c9e918cd428ac88c6a..a9afcd15e089043f595870ddfccb7224403b832c 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(client_);
+ DCHECK(client_);
return *client_;
}
Type GetType() const { return 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