-
chang.shu@nokia.com authored
Reviewed by Simon Hausmann. [Qt] REGRESSION: CoolClock isn't rendered properly https://bugs.webkit.org/show_bug.cgi?id=38526 CanvasRenderingContext2D's arc() should connect to the previous point with a straight line (HTML5 spec 4.8.11.1.8), but if the path is empty to begin with, we don't want a line back to (0,0) This also fixes the rendering artifact discussed in bug 36226. Spec link: http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc Test: fast/canvas/canvas-arc-connecting-line.html * platform/graphics/qt/PathQt.cpp: (WebCore::Path::addArc): 2010-05-19 Andreas Kling <andreas.kling@nokia.com> Reviewed by Simon Hausmann. Add test to verify that CanvasRenderingContext2D's arc() connects arcs by a straight line (unless it's the first element in the path.) https://bugs.webkit.org/show_bug.cgi?id=38526 * fast/canvas/canvas-arc-connecting-line-expected.txt: Added. * fast/canvas/canvas-arc-connecting-line.html: Added. * fast/canvas/script-tests/canvas-arc-connecting-line.js: Added. (deg2rad): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
92749a8e