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 52534e297d92b127bdf2b3f6303b7dd9eca66b93..b4996edb04f6bd6778b3ba79e7f6f156dd71340a 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* newItem = alignedAllocate(size); |
memcpy(newItem, static_cast<void*>(&item), size); |
new (&item) BaseElementType; |