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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.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/ContiguousContainer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
index e1f9c31e2b8d15591583291fecf75abb0e8d555a..3836f5b6f4bdd41c4d9891c1d5d6ad974d3626c3 100644
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
@@ -204,7 +204,7 @@ class ContiguousContainer : public ContiguousContainerBase {
}
void RemoveLast() {
- ASSERT(!IsEmpty());
+ DCHECK(!IsEmpty());
Last().~BaseElementType();
ContiguousContainerBase::RemoveLast();
}
@@ -225,7 +225,7 @@ class ContiguousContainer : public ContiguousContainerBase {
// Appends a new element using memcpy, then default-constructs a base
// element in its place. Use with care.
BaseElementType& AppendByMoving(BaseElementType& item, size_t size) {
- ASSERT(size >= sizeof(BaseElementType));
+ DCHECK_GE(size, sizeof(BaseElementType));
void* new_item = AlignedAllocate(size);
memcpy(new_item, static_cast<void*>(&item), size);
new (&item) BaseElementType;

Powered by Google App Engine
This is Rietveld 408576698