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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp

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/DisplayItemList.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
index 2d0b6a791c30bf4f102efd6dff3c547112ff23a0..054da8b888f0d87d400e0815ad486231bc09ec51 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -19,13 +19,13 @@ DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item) {
#ifndef NDEBUG
String originalDebugString = item.asDebugString();
#endif
- ASSERT(item.hasValidClient());
+ DCHECK(item.hasValidClient());
DisplayItem& result =
ContiguousContainer::appendByMoving(item, item.derivedSize());
// ContiguousContainer::appendByMoving() calls an in-place constructor
// on item which replaces it with a tombstone/"dead display item" that
// can be safely destructed but should never be used.
- ASSERT(!item.hasValidClient());
+ DCHECK(!item.hasValidClient());
#ifndef NDEBUG
// Save original debug string in the old item to help debugging.
item.setClientDebugString(originalDebugString);

Powered by Google App Engine
This is Rietveld 408576698