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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGGradientStop.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/LayoutSVGGradientStop.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGGradientStop.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGGradientStop.cpp
index 5ddab52789d8de0be40ab079705c8450568e11b2..1ddfd634f5c1254517c19873f43f9271a48970c2 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGGradientStop.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGGradientStop.cpp
@@ -58,7 +58,7 @@ void LayoutSVGGradientStop::layout() {
SVGGradientElement* LayoutSVGGradientStop::gradientElement() const {
ContainerNode* parentNode = node()->parentNode();
- ASSERT(parentNode);
+ DCHECK(parentNode);
return isSVGGradientElement(*parentNode) ? toSVGGradientElement(parentNode)
: 0;
}

Powered by Google App Engine
This is Rietveld 408576698