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

Unified Diff: Source/platform/graphics/StaticBitmapImage.cpp

Issue 669123002: Fixed Shadow blur for transparent objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing virtual layout test to TestExpectations Created 6 years, 2 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
Index: Source/platform/graphics/StaticBitmapImage.cpp
diff --git a/Source/platform/graphics/StaticBitmapImage.cpp b/Source/platform/graphics/StaticBitmapImage.cpp
index 3f5e178209980497306137f08c8d8589571fdd68..c1a78dcc86dfe488b7e41f91ac0d63381af8e476 100644
--- a/Source/platform/graphics/StaticBitmapImage.cpp
+++ b/Source/platform/graphics/StaticBitmapImage.cpp
@@ -49,7 +49,7 @@ void StaticBitmapImage::draw(GraphicsContext* ctx, const FloatRect& dstRect, con
ASSERT(normSrcRect.width() <= m_image->width() && normSrcRect.height() <= m_image->height());
SkPaint paint;
- ctx->preparePaintForDrawRectToRect(&paint, srcRect, dstRect, compositeOp, blendMode);
+ ctx->preparePaintForDrawRectToRect(&paint, srcRect, dstRect, compositeOp, blendMode, !currentFrameKnownToBeOpaque());
SkRect srcSkRect = WebCoreFloatRectToSKRect(normSrcRect);
SkRect dstSkRect = WebCoreFloatRectToSKRect(normDstRect);

Powered by Google App Engine
This is Rietveld 408576698