Chromium Code Reviews| 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..928cf4541690f52b4a95282bda0c910d762da31c 100644 |
| --- a/Source/platform/graphics/filters/FilterOperations.cpp |
| +++ b/Source/platform/graphics/filters/FilterOperations.cpp |
| @@ -34,14 +34,13 @@ namespace WebCore { |
| static inline IntSize outsetSizeForBlur(float stdDeviation) |
| { |
| - unsigned kernelSizeX = 0; |
| - unsigned kernelSizeY = 0; |
| - FEGaussianBlur::calculateUnscaledKernelSize(kernelSizeX, kernelSizeY, stdDeviation, stdDeviation); |
| + IntSize kernelSize(0, 0); |
|
pdr.
2014/03/26 00:00:13
Is this needed?
|
| + 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; |
| } |