Bug 619968 - feGaussianBlur should render as identity if stdDeviation=0 r=jwatt,a=roc

This commit is contained in:
Robert Longson 2010-12-18 13:14:09 +00:00
parent a72e5e15b4
commit 9bf199b4a1
3 changed files with 6 additions and 6 deletions

View File

@ -650,9 +650,6 @@ nsSVGFEGaussianBlurElement::GetDXY(PRUint32 *aDX, PRUint32 *aDY,
if (stdX < 0 || stdY < 0)
return NS_ERROR_FAILURE;
if (stdX == 0 || stdY == 0)
return NS_ERROR_UNEXPECTED;
// If the box size is greater than twice the temporary surface size
// in an axis, then each pixel will be set to the average of all the
// other pixel values.
@ -775,8 +772,6 @@ nsSVGFEGaussianBlurElement::Filter(nsSVGFilterInstance* aInstance,
{
PRUint32 dx, dy;
nsresult rv = GetDXY(&dx, &dy, *aInstance);
if (rv == NS_ERROR_UNEXPECTED) // zero std deviation
return NS_OK;
if (NS_FAILED(rv))
return rv;

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
<g>
<rect x="100" y="100" width="100" height="100" fill="#00ff00"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 148 B

View File

@ -28,7 +28,7 @@
# != feGaussianBlur-3.svg feGaussianBlur-3-ref.svg
== feGaussianBlur-4.svg feGaussianBlur-4-ref.svg
== feGaussianBlur-5.svg feGaussianBlur-5-ref.svg
== feGaussianBlur-6.svg about:blank
== feGaussianBlur-6.svg feGaussianBlur-6-ref.svg
== feImage-1.svg feImage-1-ref.svg