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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPath.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/SVGPath.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPath.cpp b/third_party/WebKit/Source/core/svg/SVGPath.cpp
index 187fc290bbd9ae6834da15cec5185c027adf09f3..0c8288c2f2f17208831250fabe76e29e9042d6f5 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPath.cpp
@@ -77,7 +77,7 @@ std::unique_ptr<SVGPathByteStream> conditionallyAddPathByteStreams(
SVGPath::SVGPath() : m_pathValue(CSSPathValue::emptyPathValue()) {}
SVGPath::SVGPath(CSSPathValue* pathValue) : m_pathValue(pathValue) {
- ASSERT(m_pathValue);
+ DCHECK(m_pathValue);
}
SVGPath::~SVGPath() {}
@@ -120,7 +120,7 @@ void SVGPath::calculateAnimatedValue(SVGAnimationElement* animationElement,
SVGPropertyBase* toValue,
SVGPropertyBase* toAtEndOfDurationValue,
SVGElement*) {
- ASSERT(animationElement);
+ DCHECK(animationElement);
bool isToAnimation = animationElement->getAnimationMode() == ToAnimation;
const SVGPath& to = toSVGPath(*toValue);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGParsingError.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathBlender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698