Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1939)

Unified Diff: Source/platform/graphics/filters/FEMorphology.cpp

Issue 214693008: Provide correct saveLayer() bounds in FEGaussianBlur, FEMorphology. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yet more test suppressions Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698