Index: Source/platform/graphics/filters/FilterOperations.cpp |
diff --git a/Source/platform/graphics/filters/FilterOperations.cpp b/Source/platform/graphics/filters/FilterOperations.cpp |
index 336ccb1abcc5b00eb7d24f89722644d43a4388ba..8083ae747705ea5c683695aedb2685e5162b0c5e 100644 |
--- a/Source/platform/graphics/filters/FilterOperations.cpp |
+++ b/Source/platform/graphics/filters/FilterOperations.cpp |
@@ -34,14 +34,12 @@ namespace WebCore { |
static inline IntSize outsetSizeForBlur(float stdDeviation) |
{ |
- unsigned kernelSizeX = 0; |
- unsigned kernelSizeY = 0; |
- FEGaussianBlur::calculateUnscaledKernelSize(kernelSizeX, kernelSizeY, stdDeviation, stdDeviation); |
+ IntSize kernelSize = FEGaussianBlur::calculateUnscaledKernelSize(FloatPoint(stdDeviation, stdDeviation)); |
IntSize outset; |
// We take the half kernel size and multiply it with three, because we run box blur three times. |
- outset.setWidth(3 * kernelSizeX * 0.5f); |
- outset.setHeight(3 * kernelSizeY * 0.5f); |
+ outset.setWidth(3 * kernelSize.width() * 0.5f); |
+ outset.setHeight(3 * kernelSize.height() * 0.5f); |
return outset; |
} |