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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.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/SVGLayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index 3c865ce42c35204c166ab2984639db8a5a5744ed..6da90e07c10b6205bbf150a2bcaca2c9d0557411 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -246,7 +246,7 @@ static TextStream& operator<<(TextStream& ts, const SVGSpreadMethodType& type) {
static void writeSVGPaintingResource(
TextStream& ts,
const SVGPaintDescription& paintDescription) {
- ASSERT(paintDescription.isValid);
+ DCHECK(paintDescription.isValid);
if (!paintDescription.resource) {
ts << "[type=SOLID] [color=" << paintDescription.color << "]";
return;
@@ -255,7 +255,7 @@ static void writeSVGPaintingResource(
LayoutSVGResourcePaintServer* paintServerContainer =
paintDescription.resource;
SVGElement* element = paintServerContainer->element();
- ASSERT(element);
+ DCHECK(element);
if (paintServerContainer->resourceType() == PatternResourceType)
ts << "[type=PATTERN]";
@@ -279,7 +279,7 @@ static void writeStyle(TextStream& ts, const LayoutObject& object) {
ComputedStyle::initialOpacity());
if (object.isSVGShape()) {
const LayoutSVGShape& shape = static_cast<const LayoutSVGShape&>(object);
- ASSERT(shape.element());
+ DCHECK(shape.element());
SVGPaintDescription strokePaintDescription =
LayoutSVGResourcePaintServer::requestPaintDescription(
@@ -339,7 +339,7 @@ static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape) {
writePositionAndStyle(ts, shape);
SVGElement* svgElement = shape.element();
- ASSERT(svgElement);
+ DCHECK(svgElement);
SVGLengthContext lengthContext(svgElement);
if (isSVGRectElement(*svgElement)) {
@@ -536,7 +536,7 @@ void writeSVGResourceContainer(TextStream& ts,
LayoutSVGResourceContainer* resource =
toLayoutSVGResourceContainer(const_cast<LayoutObject*>(&object));
- ASSERT(resource);
+ DCHECK(resource);
if (resource->resourceType() == MaskerResourceType) {
LayoutSVGResourceMasker* masker = toLayoutSVGResourceMasker(resource);
@@ -700,8 +700,8 @@ void writeSVGGradientStop(TextStream& ts,
writeStandardPrefix(ts, stop, indent);
SVGStopElement* stopElement = toSVGStopElement(stop.node());
- ASSERT(stopElement);
- ASSERT(stop.style());
+ DCHECK(stopElement);
+ DCHECK(stop.style());
ts << " [offset=" << stopElement->offset()->currentValue()->value()
<< "] [color=" << stopElement->stopColorIncludingOpacity() << "]\n";

Powered by Google App Engine
This is Rietveld 408576698