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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.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/SVGFESpecularLightingElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp b/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
index 34897d25255c3662dc832b963c69fbeba41f83c5..02e7cd8d1eb59e8ff82aae5ef3d59760daacb8a7 100644
--- a/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
@@ -74,8 +74,8 @@ bool SVGFESpecularLightingElement::setFilterEffectAttribute(
if (attrName == SVGNames::lighting_colorAttr) {
LayoutObject* layoutObject = this->layoutObject();
- ASSERT(layoutObject);
- ASSERT(layoutObject->style());
+ DCHECK(layoutObject);
+ DCHECK(layoutObject->style());
return specularLighting->setLightingColor(
layoutObject->style()->svgStyle().lightingColor());
}
@@ -92,9 +92,9 @@ bool SVGFESpecularLightingElement::setFilterEffectAttribute(
LightSource* lightSource =
const_cast<LightSource*>(specularLighting->lightSource());
SVGFELightElement* lightElement = SVGFELightElement::findLightElement(*this);
- ASSERT(lightSource);
- ASSERT(lightElement);
- ASSERT(effect->getFilter());
+ DCHECK(lightSource);
+ DCHECK(lightElement);
+ DCHECK(effect->getFilter());
if (attrName == SVGNames::azimuthAttr)
return lightSource->setAzimuth(
@@ -157,13 +157,13 @@ FilterEffect* SVGFESpecularLightingElement::build(
Filter* filter) {
FilterEffect* input1 = filterBuilder->getEffectById(
AtomicString(m_in1->currentValue()->value()));
- ASSERT(input1);
+ DCHECK(input1);
LayoutObject* layoutObject = this->layoutObject();
if (!layoutObject)
return nullptr;
- ASSERT(layoutObject->style());
+ DCHECK(layoutObject->style());
Color color = layoutObject->style()->svgStyle().lightingColor();
const SVGFELightElement* lightNode =
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFEOffsetElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGFETileElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698