diff options
Diffstat (limited to 'WebCore/svg/SVGFESpecularLightingElement.cpp')
-rw-r--r-- | WebCore/svg/SVGFESpecularLightingElement.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WebCore/svg/SVGFESpecularLightingElement.cpp b/WebCore/svg/SVGFESpecularLightingElement.cpp index d07c6ce..1647525 100644 --- a/WebCore/svg/SVGFESpecularLightingElement.cpp +++ b/WebCore/svg/SVGFESpecularLightingElement.cpp @@ -118,9 +118,11 @@ PassRefPtr<FilterEffect> SVGFESpecularLightingElement::build(SVGFilterBuilder* f RefPtr<RenderStyle> filterStyle = styleForRenderer(); Color color = filterStyle->svgStyle()->lightingColor(); - - return FESpecularLighting::create(input1, color, surfaceScale(), specularConstant(), - specularExponent(), kernelUnitLengthX(), kernelUnitLengthY(), findLights()); + + RefPtr<FilterEffect> effect = FESpecularLighting::create(color, surfaceScale(), specularConstant(), + specularExponent(), kernelUnitLengthX(), kernelUnitLengthY(), findLights()); + effect->inputEffects().append(input1); + return effect.release(); } } |