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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.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/SVGFEDropShadowElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
index e191ded46fac0b9a3939dbbfcbf37bd414e7770b..10c5026d8ad0f94e6514ca34849f9ea27fb9dcf1 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp
@@ -101,7 +101,7 @@ FilterEffect* SVGFEDropShadowElement::build(SVGFilterBuilder* filterBuilder,
if (!layoutObject)
return nullptr;
- ASSERT(layoutObject->style());
+ DCHECK(layoutObject->style());
const SVGComputedStyle& svgStyle = layoutObject->style()->svgStyle();
Color color = svgStyle.floodColor();
@@ -109,7 +109,7 @@ FilterEffect* SVGFEDropShadowElement::build(SVGFilterBuilder* filterBuilder,
FilterEffect* input1 = filterBuilder->getEffectById(
AtomicString(m_in1->currentValue()->value()));
- ASSERT(input1);
+ DCHECK(input1);
// Clamp std.dev. to non-negative. (See SVGFEGaussianBlurElement::build)
float stdDevX = std::max(0.0f, stdDeviationX()->currentValue()->value());

Powered by Google App Engine
This is Rietveld 408576698