Changeset 65118 in webkit
- Timestamp:
- Aug 10, 2010 8:10:51 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r65113 r65118 1 2010-08-10 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Darin Adler. 4 5 2d.path.clip.empty.html test is failing 6 https://bugs.webkit.org/show_bug.cgi?id=43161 7 8 * platform/mac/Skipped: Unskipping now passing path.clip.empty 9 1 10 2010-08-10 Sergio Villar Senin <svillar@igalia.com> 2 11 -
trunk/LayoutTests/platform/mac/Skipped
r64845 r65118 162 162 # Failing canvas test cases from http://philip.html5.org/tests/canvas/suite/tests/ 163 163 canvas/philip/tests/2d.drawImage.broken.html 164 canvas/philip/tests/2d.path.clip.empty.html165 164 canvas/philip/tests/2d.composite.operation.clear.html 166 165 canvas/philip/tests/2d.composite.operation.darker.html -
trunk/WebCore/ChangeLog
r65117 r65118 1 2010-08-10 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Darin Adler. 4 5 2d.path.clip.empty.html test is failing 6 https://bugs.webkit.org/show_bug.cgi?id=43161 7 8 * platform/graphics/cg/GraphicsContextCG.cpp: 9 (WebCore::GraphicsContext::clip): 10 Catching the empty path case from being sent directly to 11 CGContextClip - which would ignore it. Instead, using 12 CGContextClip with a CGRectZero to achieve the desired 13 behavior of reducing the clipping region to nothing. 14 1 15 2010-08-10 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 16 -
trunk/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r63864 r65118 951 951 return; 952 952 CGContextRef context = platformContext(); 953 CGContextBeginPath(context); 954 CGContextAddPath(context, path.platformPath()); 955 CGContextClip(context); 953 954 // CGContextClip does nothing if the path is empty, so in this case, we 955 // instead clip against a zero rect to reduce the clipping region to 956 // nothing - which is the intended behavior of clip() if the path is empty. 957 if (path.isEmpty()) 958 CGContextClipToRect(context, CGRectZero); 959 else { 960 CGContextBeginPath(context); 961 CGContextAddPath(context, path.platformPath()); 962 CGContextClip(context); 963 } 956 964 m_data->clip(path); 957 965 }
Note: See TracChangeset
for help on using the changeset viewer.