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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible Created 3 years, 9 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/core/svg/SVGPathByteStreamBuilder.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp b/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
index b5f1ea82257a1a535dc3a1722de4b30cada20c32..816cd550d05237b7fce4492244a937d7af0c5fac 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
@@ -37,7 +37,7 @@ class CoalescingBuffer {
ByteType<DataType> data;
data.value = value;
size_t typeSize = sizeof(ByteType<DataType>);
- ASSERT(m_currentOffset + typeSize <= sizeof(m_bytes));
+ DCHECK_LE(m_currentOffset + typeSize, sizeof(m_bytes));
memcpy(m_bytes + m_currentOffset, data.bytes, typeSize);
m_currentOffset += typeSize;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathBlender.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698