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

Unified Diff: Source/core/rendering/TextPainter.cpp

Issue 669123002: Fixed Shadow blur for transparent objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed some comments 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/core/rendering/TextPainter.cpp
diff --git a/Source/core/rendering/TextPainter.cpp b/Source/core/rendering/TextPainter.cpp
index b2c2ac7e0ca425744c5d47d9de0a6ace55d90947..81ace111bc1bcef721db863da000eb68c96b76df 100644
--- a/Source/core/rendering/TextPainter.cpp
+++ b/Source/core/rendering/TextPainter.cpp
@@ -96,6 +96,7 @@ void TextPainter::updateGraphicsContext(GraphicsContext* context, const Style& t
if (textStyle.shadow && !context->printing()) {
if (!stateSaver.saved())
stateSaver.save();
+ context->clearShadow();
Stephen White 2014/10/23 19:08:48 Same here.
sugoi1 2014/10/23 20:25:14 Done.
context->setDrawLooper(textStyle.shadow->createDrawLooper(DrawLooperBuilder::ShadowIgnoresAlpha, horizontal));
}
}

Powered by Google App Engine
This is Rietveld 408576698