Index: Source/core/svg/SVGFEConvolveMatrixElement.cpp |
diff --git a/Source/core/svg/SVGFEConvolveMatrixElement.cpp b/Source/core/svg/SVGFEConvolveMatrixElement.cpp |
index 81379768f80674283c37e857f20436b8a134092f..5f2cccf16734e56a3278daaf1ac68844b0254c8d 100644 |
--- a/Source/core/svg/SVGFEConvolveMatrixElement.cpp |
+++ b/Source/core/svg/SVGFEConvolveMatrixElement.cpp |
@@ -330,7 +330,7 @@ PassRefPtr<FilterEffect> SVGFEConvolveMatrixElement::build(SVGFilterBuilder* fil |
return 0; |
if (!hasAttribute(SVGNames::divisorAttr)) { |
for (int i = 0; i < kernelMatrixSize; ++i) |
- divisorValue += kernelMatrix.at(i); |
+ divisorValue += kernelMatrix.at(i).value(); |
if (!divisorValue) |
divisorValue = 1; |
} |
@@ -338,7 +338,7 @@ PassRefPtr<FilterEffect> SVGFEConvolveMatrixElement::build(SVGFilterBuilder* fil |
RefPtr<FilterEffect> effect = FEConvolveMatrix::create(filter, |
IntSize(orderXValue, orderYValue), divisorValue, |
biasCurrentValue(), IntPoint(targetXValue, targetYValue), edgeModeCurrentValue(), |
- FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue), preserveAlphaCurrentValue(), kernelMatrix); |
+ FloatPoint(kernelUnitLengthXValue, kernelUnitLengthYValue), preserveAlphaCurrentValue(), kernelMatrix.toFloatVector()); |
effect->inputEffects().append(input1); |
return effect.release(); |
} |