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; |