Changeset 84535 in webkit


Ignore:
Timestamp:
Apr 21, 2011 12:09:37 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-21 Mike Reed <reed@google.com>

Reviewed by Kenneth Russell.

[chromium, win] Multiple failures of shadow rendering layout tests
https://bugs.webkit.org/show_bug.cgi?id=58772

No new tests. This CL fixes a regression in the following tests
fast/multicol/shadow-breaking.html
fast/repaint/shadow-multiple-horizontal.html
fast/repaint/shadow-multiple-strict-horizontal.html
fast/repaint/shadow-multiple-strict-vertical.html
fast/repaint/shadow-multiple-vertical.html
fast/text/shadow-translucent-fill.html
fast/transforms/shadows.html
svg/css/group-with-shadow.svg
svg/css/shadow-changes.svg
svg/css/text-shadow-multiple.xhtml
transitions/svg-text-shadow-transition.html
svg/css/composite-shadow-text.svg

  • platform/graphics/skia/GraphicsContextSkia.cpp: (WebCore::GraphicsContext::setPlatformShadow):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84531 r84535  
     12011-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
    1262011-04-21  Geoffrey Garen  <ggaren@apple.com>
    227
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r84374 r84535  
    10811081    SkLayerDrawLooper::LayerInfo info;
    10821082
     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     */
    10831090    info.fPaintBits |= SkLayerDrawLooper::kMaskFilter_Bit; // our blur
    10841091    info.fPaintBits |= SkLayerDrawLooper::kColorFilter_Bit;
    1085     info.fColorMode = SkXfermode::kDst_Mode;
     1092    info.fColorMode = SkXfermode::kSrc_Mode;
    10861093    info.fOffset.set(width, height);
    10871094    info.fPostTranslate = m_state.shadowsIgnoreTransforms;
Note: See TracChangeset for help on using the changeset viewer.