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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthTearOff.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/SVGLengthTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
index 1072cfac439f5b23d289bd378cd37e8c59592772..d2aa191ff746d4e722434275ff28628fc32997f2 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
@@ -60,7 +60,7 @@ inline bool canResolveRelativeUnits(const SVGElement* contextElement) {
}
inline CSSPrimitiveValue::UnitType toCSSUnitType(unsigned short type) {
- ASSERT(isValidLengthUnit(type));
+ DCHECK(isValidLengthUnit(type));
if (type == SVGLengthTearOff::kSvgLengthtypeNumber)
return CSSPrimitiveValue::UnitType::UserUnits;
return static_cast<CSSPrimitiveValue::UnitType>(type);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698