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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEFloodElement.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/SVGFEFloodElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp
index 46ae01ab3bc9fae2812e12a802d4a922192464c3..a31ff674001ebf840c239120427a1c1775bff6fb 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp
@@ -37,7 +37,7 @@ bool SVGFEFloodElement::setFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attrName) {
LayoutObject* layoutObject = this->layoutObject();
- ASSERT(layoutObject);
+ DCHECK(layoutObject);
const ComputedStyle& style = layoutObject->styleRef();
FEFlood* flood = static_cast<FEFlood*>(effect);
@@ -55,7 +55,7 @@ FilterEffect* SVGFEFloodElement::build(SVGFilterBuilder*, Filter* filter) {
if (!layoutObject)
return nullptr;
- ASSERT(layoutObject->style());
+ DCHECK(layoutObject->style());
const SVGComputedStyle& svgStyle = layoutObject->style()->svgStyle();
Color color = svgStyle.floodColor();

Powered by Google App Engine
This is Rietveld 408576698