diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFESpecularLightingElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFESpecularLightingElement.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGFESpecularLightingElement.cpp b/Source/WebCore/svg/SVGFESpecularLightingElement.cpp index 60684ed..bdc75b1 100644 --- a/Source/WebCore/svg/SVGFESpecularLightingElement.cpp +++ b/Source/WebCore/svg/SVGFESpecularLightingElement.cpp @@ -92,6 +92,13 @@ void SVGFESpecularLightingElement::parseMappedAttribute(Attribute* attr) bool SVGFESpecularLightingElement::setFilterEffectAttribute(FilterEffect* effect, const QualifiedName& attrName) { FESpecularLighting* specularLighting = static_cast<FESpecularLighting*>(effect); + + if (attrName == SVGNames::lighting_colorAttr) { + RenderObject* renderer = this->renderer(); + ASSERT(renderer); + ASSERT(renderer->style()); + return specularLighting->setLightingColor(renderer->style()->svgStyle()->lightingColor()); + } if (attrName == SVGNames::surfaceScaleAttr) return specularLighting->setSurfaceScale(surfaceScale()); if (attrName == SVGNames::specularConstantAttr) |