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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTransformDistance.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/SVGTransformDistance.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp b/third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp
index 911152889142473412caebb1d6f93297855dbacf..108a278b3ce887dea205f7c6560d2ada95a6042f 100644
--- a/third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp
@@ -43,7 +43,7 @@ SVGTransformDistance::SVGTransformDistance(SVGTransform* fromSVGTransform,
SVGTransform* toSVGTransform)
: m_angle(0), m_cx(0), m_cy(0) {
m_transformType = fromSVGTransform->transformType();
- ASSERT(m_transformType == toSVGTransform->transformType());
+ DCHECK_EQ(m_transformType, toSVGTransform->transformType());
switch (m_transformType) {
case kSvgTransformMatrix:
@@ -115,7 +115,7 @@ SVGTransformDistance SVGTransformDistance::scaledDistance(
SVGTransform* SVGTransformDistance::addSVGTransforms(SVGTransform* first,
SVGTransform* second,
unsigned repeatCount) {
- ASSERT(first->transformType() == second->transformType());
+ DCHECK_EQ(first->transformType(), second->transformType());
SVGTransform* transform = SVGTransform::create();
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTransform.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698