| Index: Source/platform/graphics/filters/FEGaussianBlur.cpp
|
| diff --git a/Source/platform/graphics/filters/FEGaussianBlur.cpp b/Source/platform/graphics/filters/FEGaussianBlur.cpp
|
| index f82096a47c9ac8a0f638f7937b1e2a9a0fc4a26d..d0482925d1d0b2cf77e80a66ef42d2e8108fca71 100644
|
| --- a/Source/platform/graphics/filters/FEGaussianBlur.cpp
|
| +++ b/Source/platform/graphics/filters/FEGaussianBlur.cpp
|
| @@ -38,8 +38,6 @@ static inline float gaussianKernelFactor()
|
| return 3 / 4.f * sqrtf(twoPiFloat);
|
| }
|
|
|
| -static const int gMaxKernelSize = 1000;
|
| -
|
| namespace blink {
|
|
|
| FEGaussianBlur::FEGaussianBlur(Filter* filter, float x, float y)
|
| @@ -83,12 +81,12 @@ IntSize FEGaussianBlur::calculateUnscaledKernelSize(const FloatPoint& std)
|
| // inflates the absolute paint rect to much. This is compatible with Firefox' behavior.
|
| if (std.x()) {
|
| int size = std::max<unsigned>(2, static_cast<unsigned>(floorf(std.x() * gaussianKernelFactor() + 0.5f)));
|
| - kernelSize.setWidth(std::min(size, gMaxKernelSize));
|
| + kernelSize.setWidth(size);
|
| }
|
|
|
| if (std.y()) {
|
| int size = std::max<unsigned>(2, static_cast<unsigned>(floorf(std.y() * gaussianKernelFactor() + 0.5f)));
|
| - kernelSize.setHeight(std::min(size, gMaxKernelSize));
|
| + kernelSize.setHeight(size);
|
| }
|
|
|
| return kernelSize;
|
|
|