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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.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/ScrollDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
index 7871b1d4fe2dd8b81b7773a15569351789d90955..6fa4dbdc07c988a3761b37c077301c18d4903fd2 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.h
@@ -19,7 +19,7 @@ class PLATFORM_EXPORT BeginScrollDisplayItem final
const IntSize& currentOffset)
: PairedBeginDisplayItem(client, type, sizeof(*this)),
m_currentOffset(currentOffset) {
- ASSERT(isScrollType(type));
+ DCHECK(isScrollType(type));
}
void replay(GraphicsContext&) const override;
@@ -46,7 +46,7 @@ class PLATFORM_EXPORT EndScrollDisplayItem final : public PairedEndDisplayItem {
public:
EndScrollDisplayItem(const DisplayItemClient& client, Type type)
: PairedEndDisplayItem(client, type, sizeof(*this)) {
- ASSERT(isEndScrollType(type));
+ DCHECK(isEndScrollType(type));
}
void replay(GraphicsContext&) const override;

Powered by Google App Engine
This is Rietveld 408576698