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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathBlender.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/SVGPathBlender.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathBlender.cpp b/third_party/WebKit/Source/core/svg/SVGPathBlender.cpp
index 4d883304aa218ddb23c92981f54aa9c8f6dc6abc..ac7fadfde1f387f84d1f2b3fb67ba94719f39394 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathBlender.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathBlender.cpp
@@ -76,7 +76,7 @@ float SVGPathBlender::BlendState::blendAnimatedDimensonalFloat(
float to,
FloatBlendMode blendMode) {
if (m_addTypesCount) {
- ASSERT(m_typesAreEqual);
+ DCHECK(m_typesAreEqual);
return from + to * m_addTypesCount;
}
@@ -290,9 +290,9 @@ SVGPathBlender::SVGPathBlender(SVGPathByteStreamSource* fromSource,
SVGPathByteStreamSource* toSource,
SVGPathConsumer* consumer)
: m_fromSource(fromSource), m_toSource(toSource), m_consumer(consumer) {
- ASSERT(m_fromSource);
- ASSERT(m_toSource);
- ASSERT(m_consumer);
+ DCHECK(m_fromSource);
+ DCHECK(m_toSource);
+ DCHECK(m_consumer);
}
bool SVGPathBlender::addAnimatedPath(unsigned repeatCount) {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698