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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.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/LayoutSVGPath.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
index a11a7fa92fce999ef9ed63f938d72a32a4bb369e..ae85a150017db19251308863b946d3b0dae609e6 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGPath.cpp
@@ -87,16 +87,16 @@ FloatRect LayoutSVGPath::calculateUpdatedStrokeBoundingBox() const {
}
FloatRect LayoutSVGPath::markerRect(float strokeWidth) const {
- ASSERT(!m_markerPositions.isEmpty());
+ DCHECK(!m_markerPositions.isEmpty());
SVGResources* resources =
SVGResourcesCache::cachedResourcesForLayoutObject(this);
- ASSERT(resources);
+ DCHECK(resources);
LayoutSVGResourceMarker* markerStart = resources->markerStart();
LayoutSVGResourceMarker* markerMid = resources->markerMid();
LayoutSVGResourceMarker* markerEnd = resources->markerEnd();
- ASSERT(markerStart || markerMid || markerEnd);
+ DCHECK(markerStart || markerMid || markerEnd);
FloatRect boundaries;
unsigned size = m_markerPositions.size();
@@ -134,7 +134,7 @@ void LayoutSVGPath::processMarkerPositions() {
SVGResources* resources =
SVGResourcesCache::cachedResourcesForLayoutObject(this);
- ASSERT(resources);
+ DCHECK(resources);
LayoutSVGResourceMarker* markerStart = resources->markerStart();

Powered by Google App Engine
This is Rietveld 408576698