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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthList.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/SVGLengthList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
index 238b63c1ac1e4dd2e8e5bc7083c04fdf5b8afd9a..d0f9759e237308f7cc10b2f579c29a10ca871c42 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthList.cpp
@@ -132,8 +132,8 @@ void SVGLengthList::calculateAnimatedValue(
toSVGLengthList(toAtEndOfDurationValue);
SVGLengthContext lengthContext(contextElement);
- ASSERT(m_mode == SVGLength::lengthModeForAnimatedLengthAttribute(
- animationElement->attributeName()));
+ DCHECK_EQ(m_mode, SVGLength::lengthModeForAnimatedLengthAttribute(
+ animationElement->attributeName()));
size_t fromLengthListSize = fromList->length();
size_t toLengthListSize = toList->length();
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthContext.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698