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 a896e34a4ae43d7b2d47b0ca74b86702ef76ade3..6bf775c8b082db3c93753ee183a9d7aeb136c48c 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp |
@@ -59,6 +59,25 @@ void SVGFEDropShadowElement::setStdDeviation(float x, float y) |
invalidate(); |
} |
+bool SVGFEDropShadowElement::setFilterEffectAttribute(FilterEffect* effect, const QualifiedName& attrName) |
+{ |
+ DCHECK(layoutObject()); |
+ FEDropShadow* dropShadow = static_cast<FEDropShadow*>(effect); |
+ |
+ const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle(); |
+ if (attrName == SVGNames::flood_colorAttr) { |
+ dropShadow->setShadowColor(svgStyle.floodColor()); |
+ return true; |
+ } |
+ if (attrName == SVGNames::flood_opacityAttr) { |
+ dropShadow->setShadowOpacity(svgStyle.floodOpacity()); |
+ return true; |
+ } |
+ |
+ NOTREACHED(); |
+ return false; |
+} |
+ |
void SVGFEDropShadowElement::svgAttributeChanged(const QualifiedName& attrName) |
{ |
if (attrName == SVGNames::inAttr |