diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-03-28 11:41:27 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-03-28 11:41:27 -0700 |
commit | f27fab1a4a6a46039e79f96a6c5a85d8625d3fc5 (patch) | |
tree | e2cfb30cfde4a84079d0c788025459b2b0f19649 /WebCore/platform/graphics/android/FontAndroid.cpp | |
parent | 72fb10cbddf660a263b16e9a1b48c4418f0c850e (diff) | |
download | external_webkit-f27fab1a4a6a46039e79f96a6c5a85d8625d3fc5.zip external_webkit-f27fab1a4a6a46039e79f96a6c5a85d8625d3fc5.tar.gz external_webkit-f27fab1a4a6a46039e79f96a6c5a85d8625d3fc5.tar.bz2 |
Fix the CSS style for Stroke+Fill
bug:4183328
Change-Id: I5eb8443f8069d866892c3f2beb69805ada43714f
Diffstat (limited to 'WebCore/platform/graphics/android/FontAndroid.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/FontAndroid.cpp | 5 |
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(); |