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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h

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/SVGPathByteStreamSource.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
index 315e7dea3f77e867ccb9a37b8e871094b0c14182..2ca8b29f1855ae0711df7342726ea5cffa9d61d3 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
@@ -45,7 +45,7 @@ class SVGPathByteStreamSource {
DataType readType() {
ByteType<DataType> data;
size_t typeSize = sizeof(ByteType<DataType>);
- ASSERT(m_streamCurrent + typeSize <= m_streamEnd);
+ DCHECK_LE(m_streamCurrent + typeSize, m_streamEnd);
memcpy(data.bytes, m_streamCurrent, typeSize);
m_streamCurrent += typeSize;
return data.value;

Powered by Google App Engine
This is Rietveld 408576698