| Index: Source/platform/graphics/filters/FEMorphology.cpp
|
| diff --git a/Source/platform/graphics/filters/FEMorphology.cpp b/Source/platform/graphics/filters/FEMorphology.cpp
|
| index 3c9b121b6dc8de2240926b42d419ffdc7c8da1f9..d5322f3eae212f1e8b3ba7819819d1dc5caacc84 100644
|
| --- a/Source/platform/graphics/filters/FEMorphology.cpp
|
| +++ b/Source/platform/graphics/filters/FEMorphology.cpp
|
| @@ -244,7 +244,8 @@ bool FEMorphology::applySkia()
|
| else if (m_type == FEMORPHOLOGY_OPERATOR_ERODE)
|
| paint.setImageFilter(new SkErodeImageFilter(radiusX, radiusY))->unref();
|
|
|
| - dstContext->saveLayer(0, &paint);
|
| + SkRect bounds = SkRect::MakeWH(absolutePaintRect().width(), absolutePaintRect().height());
|
| + dstContext->saveLayer(&bounds, &paint);
|
| dstContext->drawImage(image.get(), drawingRegion.location(), CompositeCopy);
|
| dstContext->restoreLayer();
|
| return true;
|
|
|