mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 619968 - feGaussianBlur should render as identity if stdDeviation=0 r=jwatt,a=roc
This commit is contained in:
parent
a72e5e15b4
commit
9bf199b4a1
@ -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;
|
||||
|
||||
|
5
layout/reftests/svg/filters/feGaussianBlur-6-ref.svg
Normal file
5
layout/reftests/svg/filters/feGaussianBlur-6-ref.svg
Normal 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 |
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user