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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest 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/layout/svg/LayoutSVGTextPath.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp
index 8c7e618aed508cf3e7b9d674a10ab9e04e803d72..8ad96bdf047ca318961d49ab355e3ff593cc5cbb 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.cpp
@@ -38,7 +38,8 @@ PathPositionMapper::PositionType PathPositionMapper::pointAndNormalAtLength(
return BeforePath;
if (length > m_pathLength)
return AfterPath;
- ASSERT(length >= 0 && length <= m_pathLength);
+ DCHECK_GE(length, 0);
+ DCHECK_LE(length, m_pathLength);
m_positionCalculator.pointAndNormalAtLength(length, point, angle);
return OnPath;
}

Powered by Google App Engine
This is Rietveld 408576698