diff options
Diffstat (limited to 'WebCore/svg/SVGFEConvolveMatrixElement.cpp')
-rw-r--r-- | WebCore/svg/SVGFEConvolveMatrixElement.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/svg/SVGFEConvolveMatrixElement.cpp b/WebCore/svg/SVGFEConvolveMatrixElement.cpp index 9432a00..db2fad5 100644 --- a/WebCore/svg/SVGFEConvolveMatrixElement.cpp +++ b/WebCore/svg/SVGFEConvolveMatrixElement.cpp @@ -151,10 +151,12 @@ PassRefPtr<FilterEffect> SVGFEConvolveMatrixElement::build(SVGFilterBuilder* fil divisorValue = 1; } - return FEConvolveMatrix::create( - input1, IntSize(orderXValue, orderYValue), divisorValue, - bias(), IntPoint(targetXValue, targetYValue), static_cast<EdgeModeType>(edgeMode()), - FloatPoint(kernelUnitLengthX(), kernelUnitLengthX()), preserveAlpha(), kernelMatrixValues); + RefPtr<FilterEffect> effect = FEConvolveMatrix::create( + IntSize(orderXValue, orderYValue), divisorValue, + bias(), IntPoint(targetXValue, targetYValue), static_cast<EdgeModeType>(edgeMode()), + FloatPoint(kernelUnitLengthX(), kernelUnitLengthX()), preserveAlpha(), kernelMatrixValues); + effect->inputEffects().append(input1); + return effect.release(); } } // namespace WebCore |