[Qt] Canvas arcTo() should draw straight line to p1 if p0, p1 and p2 are collinear
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jul 2010 15:15:43 +0000 (15:15 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jul 2010 15:15:43 +0000 (15:15 +0000)
commitb405bc443501d7946fc280f85f7f7d7492de9374
tree94ed5eab5a3a80fa90027c051a482b7727a0aedd
parentc73268b9354c3abead5116de0f8b08fbafe47758
[Qt] Canvas arcTo() should draw straight line to p1 if p0, p1 and p2 are collinear

Reviewed by Simon Hausmann.

The implementation of PathQt's addArcTo() was not float-safe and also had
a case where it drew an 'infinite' line, which is not part of the spec.

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

We now use qFuzzyCompare() in both cases. The method isPointOnPathBorder()
also had the same problem, and was refactored a bit in the process of fixing
the bug.

Initial patch by Andreas Kling.

https://bugs.webkit.org/show_bug.cgi?id=41412

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/qt/Skipped
WebCore/ChangeLog
WebCore/platform/graphics/qt/PathQt.cpp