Changeset 84535 in webkit
- Timestamp:
- Apr 21, 2011 12:09:37 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84531 r84535 1 2011-04-21 Mike Reed <reed@google.com> 2 3 Reviewed by Kenneth Russell. 4 5 [chromium, win] Multiple failures of shadow rendering layout tests 6 https://bugs.webkit.org/show_bug.cgi?id=58772 7 8 No new tests. This CL fixes a regression in the following tests 9 fast/multicol/shadow-breaking.html 10 fast/repaint/shadow-multiple-horizontal.html 11 fast/repaint/shadow-multiple-strict-horizontal.html 12 fast/repaint/shadow-multiple-strict-vertical.html 13 fast/repaint/shadow-multiple-vertical.html 14 fast/text/shadow-translucent-fill.html 15 fast/transforms/shadows.html 16 svg/css/group-with-shadow.svg 17 svg/css/shadow-changes.svg 18 svg/css/text-shadow-multiple.xhtml 19 transitions/svg-text-shadow-transition.html 20 svg/css/composite-shadow-text.svg 21 22 23 * platform/graphics/skia/GraphicsContextSkia.cpp: 24 (WebCore::GraphicsContext::setPlatformShadow): 25 1 26 2011-04-21 Geoffrey Garen <ggaren@apple.com> 2 27 -
trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
r84374 r84535 1081 1081 SkLayerDrawLooper::LayerInfo info; 1082 1082 1083 /* 1084 WebKit's interpretation of shadow color is that it does not pay 1085 attention to the alpha in the fill color, so we pass kSrc_Mode for 1086 fColorMode so that we overwrite the drawing paint's color and use ours, 1087 which is 0xFF000000. This works fine, since by passing kSrcIn_Mode to 1088 the colorfilter, we will only modulate with the alpha, which is 0xFF. 1089 */ 1083 1090 info.fPaintBits |= SkLayerDrawLooper::kMaskFilter_Bit; // our blur 1084 1091 info.fPaintBits |= SkLayerDrawLooper::kColorFilter_Bit; 1085 info.fColorMode = SkXfermode::k Dst_Mode;1092 info.fColorMode = SkXfermode::kSrc_Mode; 1086 1093 info.fOffset.set(width, height); 1087 1094 info.fPostTranslate = m_state.shadowsIgnoreTransforms;
Note: See TracChangeset
for help on using the changeset viewer.