[Webkit-unassigned] [Bug 40793] [Cairo] The size of the shadow image uses the standard deviation size instead of the blur radius

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 18 12:53:37 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40793





--- Comment #18 from Dirk Schulze <krit at webkit.org>  2010-08-18 12:53:37 PST ---
(From update of attachment 64751)
WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp:933
 +      FEGaussianBlur::calculateStdDeviation(blurRadius, FloatSize(1, 1), sdx, sdy);
See next comment.

WebCore/platform/graphics/filters/FEGaussianBlur.cpp:203
 +  void FEGaussianBlur::calculateStdDeviation(const FloatPoint& radius, const FloatSize& resolution, float& sdx, float& sdy)
Why did you add this? IIRC we just need the code for CSS shadows. We don't have different radii for width or height. The resolution is always FloatSize(1,1). So why not just add the following line once directly to the Shadow code in GC?

WebCore/platform/graphics/filters/FEGaussianBlur.cpp:207
 +      sdy = max((radius.y() * 2 / 3 - 0.5) / (resolution.height() * gGaussianKernelFactor), 0.0);
should be
2 / 3.f
and
, 0.f);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list