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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathStringBuilder.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/SVGPathStringBuilder.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp b/third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp
index 2443876739fde99f589b10185d7d081512244357..eac13c3dc74933a73e4c9347c832aba628775c4b 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp
@@ -74,8 +74,8 @@ static const char pathSegmentCharacter[] = {
};
void SVGPathStringBuilder::emitSegment(const PathSegmentData& segment) {
- ASSERT(segment.command > PathSegUnknown &&
- segment.command <= PathSegCurveToQuadraticSmoothRel);
+ DCHECK_GT(segment.command, PathSegUnknown);
+ DCHECK_LE(segment.command, PathSegCurveToQuadraticSmoothRel);
m_stringBuilder.append(pathSegmentCharacter[segment.command]);
switch (segment.command) {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathQuery.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698