Index: Source/WebCore/platform/graphics/filters/FEMorphology.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/filters/FEMorphology.cpp (revision 96370) |
+++ Source/WebCore/platform/graphics/filters/FEMorphology.cpp (working copy) |
@@ -207,8 +207,10 @@ |
return; |
setIsAlphaImage(in->isAlphaImage()); |
- if (m_radiusX <= 0 || m_radiusY <= 0) |
+ if (m_radiusX <= 0 || m_radiusY <= 0) { |
+ dstPixelArray->clear(); |
return; |
+ } |
Filter* filter = this->filter(); |
int radiusX = static_cast<int>(floorf(filter->applyHorizontalScale(m_radiusX))); |