Changeset 84512 in webkit
- Timestamp:
- Apr 21, 2011 9:57:02 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r84511 r84512 27 27 * platform/mac/fast/html/details-remove-summary-child-2-expected.png: Added. 28 28 * platform/mac/fast/html/details-remove-summary-child-2-expected.txt: Added. 29 30 2011-04-20 Matthew Delaney <mdelaney@apple.com> 31 32 Reviewed by Maciej Stachowiak. 33 34 arc() should add a circle to the path when start and end angles are far enough apart 35 https://bugs.webkit.org/show_bug.cgi?id=58934 36 37 * fast/canvas/canvas_arc_largeangles-expected.txt: Added. 38 * fast/canvas/canvas_arc_largeangles.html: Added. 29 39 30 40 2011-04-20 Matthew Delaney <mdelaney@apple.com> -
trunk/Source/WebCore/ChangeLog
r84511 r84512 1 2011-04-20 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Maciej Stachowiak. 4 5 arc() should add a circle to the path when start and end angles are far enough apart 6 https://bugs.webkit.org/show_bug.cgi?id=58934 7 8 Test: fast/canvas/canvas_arc_largeangles.html 9 10 * html/canvas/CanvasRenderingContext2D.cpp: 11 (WebCore::CanvasRenderingContext2D::arc): 12 1 13 2011-04-20 MORITA Hajime <morrita@google.com> 2 14 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r84504 r84512 852 852 if (!state().m_invertibleCTM) 853 853 return; 854 855 // If 'sa' and 'ea' differ by more than 2Pi, just add a circle starting/ending at 'sa' 856 if (anticlockwise && sa - ea >= 2 * piFloat) { 857 m_path.addArc(FloatPoint(x, y), r, sa, sa - 2 * piFloat, anticlockwise); 858 return; 859 } 860 if (!anticlockwise && ea - sa >= 2 * piFloat) { 861 m_path.addArc(FloatPoint(x, y), r, sa, sa + 2 * piFloat, anticlockwise); 862 return; 863 } 864 854 865 m_path.addArc(FloatPoint(x, y), r, sa, ea, anticlockwise); 855 866 }
Note: See TracChangeset
for help on using the changeset viewer.