Changeset 94273 in webkit
- Timestamp:
- Aug 31, 2011 11:07:32 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94270 r94273 1 2011-08-31 Tom Zakrajsek <tomz@codeaurora.org> 2 3 Fix snow-leopard regression caused by r93982 4 https://bugs.webkit.org/show_bug.cgi?id=67301 5 6 Reviewed by Kenneth Russell. 7 8 Test: canvas/philip/tests/2d.path.stroke.prune.arc.html 9 10 * html/canvas/CanvasRenderingContext2D.cpp: 11 (WebCore::CanvasRenderingContext2D::arc): 12 1 13 2011-08-31 Keishi Hattori <keishi@webkit.org> 2 14 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r93982 r94273 835 835 836 836 if (!r || sa == ea) { 837 // A subpath consisting of a single empty arc should draw nothing. 838 // However, an empty arc may comprise one point in a non-empty 839 // subpath, so do not ignore empty arcs entirely. 840 FloatPoint pt(x + r * cosf(sa), y + r * sinf(sa)); 841 if (!m_path.hasCurrentPoint()) 842 m_path.moveTo(pt); 843 else 844 m_path.addLineTo(pt); 837 // The arc is empty but we still need to draw the connecting line 838 lineTo(x + r * cosf(sa), y + r * sinf(sa)); 845 839 return; 846 840 }
Note: See TracChangeset
for help on using the changeset viewer.