| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.cpp
|
| index 851cf0d53b88a8b2c6c4d600d716e395b198804c..c2aa8c59428d6d9016b7d0716ac53ba5fd489523 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.cpp
|
| @@ -36,14 +36,12 @@ void LayoutSVGResourceFilterPrimitive::styleDidChange(StyleDifference diff, cons
|
| LayoutObject* filter = parent();
|
| if (!filter)
|
| return;
|
| - ASSERT(filter->isSVGResourceFilter());
|
| -
|
| + DCHECK(filter->isSVGResourceFilter());
|
| if (!oldStyle)
|
| return;
|
| -
|
| - const SVGComputedStyle& newStyle = this->style()->svgStyle();
|
| - ASSERT(element());
|
| - if (isSVGFEFloodElement(*element())) {
|
| + const SVGComputedStyle& newStyle = this->styleRef().svgStyle();
|
| + DCHECK(element());
|
| + if (isSVGFEFloodElement(*element()) || isSVGFEDropShadowElement(*element())) {
|
| if (newStyle.floodColor() != oldStyle->svgStyle().floodColor())
|
| toLayoutSVGResourceFilter(filter)->primitiveAttributeChanged(this, SVGNames::flood_colorAttr);
|
| if (newStyle.floodOpacity() != oldStyle->svgStyle().floodOpacity())
|
|
|