Commit 32d242c0 authored by eric@webkit.org's avatar eric@webkit.org
Browse files

2010-06-04 Andreas Kling <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Canvas arc() with zero radius should draw a line to the start point
        https://bugs.webkit.org/show_bug.cgi?id=40164

        Unskip canvas/philip/tests/2d.path.arc.zeroradius.html

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc

        * platform/qt/Skipped:
2010-06-04  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Canvas arc() with zero radius should draw a line to the start point
        https://bugs.webkit.org/show_bug.cgi?id=40164

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc

        * platform/graphics/qt/PathQt.cpp:
        (WebCore::Path::addArc):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 55f4f310
2010-06-04 Andreas Kling <andreas.kling@nokia.com>
Reviewed by Tor Arne Vestbø.
[Qt] Canvas arc() with zero radius should draw a line to the start point
https://bugs.webkit.org/show_bug.cgi?id=40164
Unskip canvas/philip/tests/2d.path.arc.zeroradius.html
Spec link:
http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc
* platform/qt/Skipped:
2010-06-04 Martin Robinson <mrobinson@igalia.com>
 
Unreviewed.
......
......@@ -5136,7 +5136,6 @@ canvas/philip/tests/2d.line.join.parallel.html
canvas/philip/tests/2d.line.miter.lineedge.html
canvas/philip/tests/2d.missingargs.html
canvas/philip/tests/2d.path.arc.twopie.3.html
canvas/philip/tests/2d.path.arc.zeroradius.html
canvas/philip/tests/2d.path.arcTo.collinear.2.html
canvas/philip/tests/2d.path.arcTo.collinear.3.html
canvas/philip/tests/2d.path.arcTo.scale.html
......
2010-06-04 Andreas Kling <andreas.kling@nokia.com>
Reviewed by Tor Arne Vestbø.
[Qt] Canvas arc() with zero radius should draw a line to the start point
https://bugs.webkit.org/show_bug.cgi?id=40164
Spec link:
http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc
* platform/graphics/qt/PathQt.cpp:
(WebCore::Path::addArc):
2010-06-04 Martin Robinson <mrobinson@igalia.com>
Reviewed by Xan Lopez.
......
......@@ -319,6 +319,10 @@ void Path::addArc(const FloatPoint& p, float r, float sar, float ear, bool antic
// NOTE: QPainterPath::isEmpty() won't work here since it ignores a lone MoveToElement
if (!m_path.elementCount())
m_path.arcMoveTo(xs, ys, width, height, sa);
else if (!radius) {
m_path.lineTo(xc, yc);
return;
}
m_path.arcTo(xs, ys, width, height, sa, span);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment