summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/platform/graphics/android/FontAndroid.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/FontAndroid.cpp b/WebCore/platform/graphics/android/FontAndroid.cpp
index ffaeded..e896a46 100644
--- a/WebCore/platform/graphics/android/FontAndroid.cpp
+++ b/WebCore/platform/graphics/android/FontAndroid.cpp
@@ -83,8 +83,9 @@ static bool setupForText(SkPaint* paint, GraphicsContext* gc,
float shadowBlur;
Color shadowColor;
bool hasShadow = gc->getShadow(shadowOffset, shadowBlur, shadowColor);
-
- if (hasShadow || (mode == (cTextStroke & cTextFill))) {
+ bool hasBothStrokeAndFill =
+ (mode & (cTextStroke | cTextFill)) == (cTextStroke | cTextFill);
+ if (hasShadow || hasBothStrokeAndFill) {
SkLayerDrawLooper* looper = new SkLayerDrawLooper;
paint->setLooper(looper)->unref();