Changeset 89397 in webkit
- Timestamp:
- Jun 21, 2011 5:40:41 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89396 r89397 1 2011-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 1 13 2011-06-21 Tony Chang <tony@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r89396 r89397 1 2011-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 1 15 2011-06-21 Tony Chang <tony@chromium.org> 2 16 -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r88144 r89397 895 895 if (paintingDisabled()) 896 896 return; 897 CGContextRef context = platformContext(); 898 CGContextSaveGState(context); 897 898 save(); 899 900 CGContextRef context = platformContext(); 899 901 CGContextSetAlpha(context, opacity); 900 902 CGContextBeginTransparencyLayer(context, 0); … … 909 911 CGContextRef context = platformContext(); 910 912 CGContextEndTransparencyLayer(context); 911 CGContextRestoreGState(context);912 913 m_data->endTransparencyLayer(); 913 m_data->m_userToDeviceTransformKnownToBeIdentity = false; 914 915 restore(); 914 916 } 915 917
Note: See TracChangeset
for help on using the changeset viewer.