diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/ShadowBlur.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/ShadowBlur.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/ShadowBlur.cpp b/Source/WebCore/platform/graphics/ShadowBlur.cpp index f61ecff..0df51a4 100644 --- a/Source/WebCore/platform/graphics/ShadowBlur.cpp +++ b/Source/WebCore/platform/graphics/ShadowBlur.cpp @@ -144,7 +144,6 @@ ShadowBlur::ShadowBlur(float radius, const FloatSize& offset, const Color& color // Instead of integer division, we use 17.15 for fixed-point division. static const int blurSumShift = 15; -static const float gaussianKernelFactor = 3 / 4.f * sqrtf(2 * piFloat); void ShadowBlur::blurLayerImage(unsigned char* imageData, const IntSize& size, int rowStride) { @@ -167,6 +166,7 @@ void ShadowBlur::blurLayerImage(unsigned char* imageData, const IntSize& size, i // However, shadows rendered according to that spec will extend a little further than m_blurRadius, // so we apply a fudge factor to bring the radius down slightly. float stdDev = m_blurRadius / 2; + const float gaussianKernelFactor = 3 / 4.f * sqrtf(2 * piFloat); const float fudgeFactor = 0.88f; diameter = max(2, static_cast<int>(floorf(stdDev * gaussianKernelFactor * fudgeFactor + 0.5f))); } |