Changeset 89397 in webkit


Ignore:
Timestamp:
Jun 21, 2011 5:40:41 PM (13 years ago)
Author:
mdelaney@apple.com
Message:

2011-06-21 Matthew Delaney <mdelaney@apple.com>

Reviewed by Simon Fraser.

beginTransparencyLayer leaves context color out of sync, bleeds color into text
https://bugs.webkit.org/show_bug.cgi?id=63093

Test: fast/css/color-leakage.html

  • platform/graphics/cg/GraphicsContextCG.cpp: Swap out CGContextSave/Restore with GraphicsContext::save/restore to keep the context in sync with its CG context (WebCore::GraphicsContext::beginTransparencyLayer): Added save(), removed redundant calls. (WebCore::GraphicsContext::endTransparencyLayer): Added restore(), removed redundant calls.

2011-06-21 Matthew Delaney <mdelaney@apple.com>

Reviewed by Simon Fraser.

beginTransparencyLayer leaves context color out of sync, bleeds color into text
https://bugs.webkit.org/show_bug.cgi?id=63093

  • fast/css/color-leakage.html: Added pixel regression test that previously would have the border's color spilling into the text.
  • platform/mac/fast/css/color-leakage-expected.png: Added.
  • platform/mac/fast/css/color-leakage-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89396 r89397  
     12011-06-21  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        beginTransparencyLayer leaves context color out of sync, bleeds color into text
     6        https://bugs.webkit.org/show_bug.cgi?id=63093
     7
     8        * fast/css/color-leakage.html: Added pixel regression test that previously would have the
     9          border's color spilling into the text.
     10        * platform/mac/fast/css/color-leakage-expected.png: Added.
     11        * platform/mac/fast/css/color-leakage-expected.txt: Added.
     12
    1132011-06-21  Tony Chang  <tony@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r89396 r89397  
     12011-06-21  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        beginTransparencyLayer leaves context color out of sync, bleeds color into text
     6        https://bugs.webkit.org/show_bug.cgi?id=63093
     7
     8        Test: fast/css/color-leakage.html
     9
     10        * platform/graphics/cg/GraphicsContextCG.cpp: Swap out CGContextSave/Restore with
     11        GraphicsContext::save/restore to keep the context in sync with its CG context
     12        (WebCore::GraphicsContext::beginTransparencyLayer): Added save(), removed redundant calls.
     13        (WebCore::GraphicsContext::endTransparencyLayer): Added restore(), removed redundant calls.
     14
    1152011-06-21  Tony Chang  <tony@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r88144 r89397  
    895895    if (paintingDisabled())
    896896        return;
    897     CGContextRef context = platformContext();
    898     CGContextSaveGState(context);
     897
     898    save();
     899
     900    CGContextRef context = platformContext();
    899901    CGContextSetAlpha(context, opacity);
    900902    CGContextBeginTransparencyLayer(context, 0);
     
    909911    CGContextRef context = platformContext();
    910912    CGContextEndTransparencyLayer(context);
    911     CGContextRestoreGState(context);
    912913    m_data->endTransparencyLayer();
    913     m_data->m_userToDeviceTransformKnownToBeIdentity = false;
     914
     915    restore();
    914916}
    915917
Note: See TracChangeset for help on using the changeset viewer.