Index: Source/core/svg/SVGFEDiffuseLightingElement.cpp |
diff --git a/Source/core/svg/SVGFEDiffuseLightingElement.cpp b/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
index 9ccbbce97aadc313edf7daa8eaf3de1c911e3d94..291e05291576696d03112be88f808308806c113f 100644 |
--- a/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
+++ b/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
@@ -67,11 +67,6 @@ bool SVGFEDiffuseLightingElement::setFilterEffectAttribute(FilterEffect* effect, |
return diffuseLighting->setSurfaceScale(m_surfaceScale->currentValue()->value()); |
if (attrName == SVGNames::diffuseConstantAttr) |
return diffuseLighting->setDiffuseConstant(m_diffuseConstant->currentValue()->value()); |
- if (attrName == SVGNames::kernelUnitLengthAttr) { |
- bool changedX = diffuseLighting->setKernelUnitLengthX(m_kernelUnitLength->firstNumber()->currentValue()->value()); |
- bool changedY = diffuseLighting->setKernelUnitLengthY(m_kernelUnitLength->secondNumber()->currentValue()->value()); |
- return changedX || changedY; |
- } |
LightSource* lightSource = const_cast<LightSource*>(diffuseLighting->lightSource()); |
const SVGFELightElement* lightElement = SVGFELightElement::findLightElement(*this); |
@@ -100,7 +95,6 @@ void SVGFEDiffuseLightingElement::svgAttributeChanged(const QualifiedName& attrN |
{ |
if (attrName == SVGNames::surfaceScaleAttr |
|| attrName == SVGNames::diffuseConstantAttr |
- || attrName == SVGNames::kernelUnitLengthAttr |
|| attrName == SVGNames::lighting_colorAttr) { |
SVGElement::InvalidationGuard invalidationGuard(this); |
primitiveAttributeChanged(attrName); |
@@ -145,7 +139,7 @@ PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilte |
RefPtr<LightSource> lightSource = lightNode->lightSource(filter); |
RefPtrWillBeRawPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, m_surfaceScale->currentValue()->value(), m_diffuseConstant->currentValue()->value(), |
- kernelUnitLengthX()->currentValue()->value(), kernelUnitLengthY()->currentValue()->value(), lightSource.release()); |
+ lightSource.release()); |
effect->inputEffects().append(input1); |
return effect.release(); |
} |