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

Unified Diff: Source/platform/graphics/filters/FEGaussianBlur.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 | « LayoutTests/TestExpectations ('k') | Source/platform/graphics/filters/FEMorphology.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/FEGaussianBlur.cpp
diff --git a/Source/platform/graphics/filters/FEGaussianBlur.cpp b/Source/platform/graphics/filters/FEGaussianBlur.cpp
index 631eac48165ff4e7b57d86d0067fbdda7db7d160..a3635ed1cfea5e7a94e3c6f56768e302172ec924 100644
--- a/Source/platform/graphics/filters/FEGaussianBlur.cpp
+++ b/Source/platform/graphics/filters/FEGaussianBlur.cpp
@@ -336,7 +336,8 @@ bool FEGaussianBlur::applySkia()
GraphicsContext* dstContext = resultImage->context();
paint.setImageFilter(new SkBlurImageFilter(stdX, stdY))->unref();
- dstContext->saveLayer(0, &paint);
+ SkRect bounds = SkRect::MakeWH(absolutePaintRect().width(), absolutePaintRect().height());
+ dstContext->saveLayer(&bounds, &paint);
paint.setColor(0xFFFFFFFF);
dstContext->drawImage(image.get(), drawingRegion.location(), CompositeCopy);
dstContext->restoreLayer();
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/graphics/filters/FEMorphology.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698