| Index: third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp b/third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
|
| index 88455f2c326d97c3046016407e2e573da46945e5..d519fa548e97f97a007f86aef4879d856b4d9dff 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp
|
| @@ -92,17 +92,15 @@ void SVGFilterPrimitiveStandardAttributes::childrenChanged(const ChildrenChange&
|
|
|
| void SVGFilterPrimitiveStandardAttributes::setStandardAttributes(FilterEffect* filterEffect) const
|
| {
|
| - ASSERT(filterEffect);
|
| - if (!filterEffect)
|
| - return;
|
| + DCHECK(filterEffect);
|
|
|
| - if (hasAttribute(SVGNames::xAttr))
|
| + if (x()->isSpecified())
|
| filterEffect->setHasX(true);
|
| - if (hasAttribute(SVGNames::yAttr))
|
| + if (y()->isSpecified())
|
| filterEffect->setHasY(true);
|
| - if (hasAttribute(SVGNames::widthAttr))
|
| + if (width()->isSpecified())
|
| filterEffect->setHasWidth(true);
|
| - if (hasAttribute(SVGNames::heightAttr))
|
| + if (height()->isSpecified())
|
| filterEffect->setHasHeight(true);
|
| }
|
|
|
|
|