The current implementation calls QPainterPath::closePath() indiscriminately which leads to rendering artifacts. See for example: http://www.kevs3d.co.uk/dev/canvask3d/k3d_test.html
Created attachment 64500 [details] Proposed patch
Comment on attachment 64500 [details] Proposed patch Per our discussion on IRC, let's try another approach first. Clearing the review flag.
Created attachment 64534 [details] Proposed patch v2
Created attachment 64537 [details] Proposed patch v3 As per discussion on IRC, track last subpath via a new (Qt-only) int member in Path.
Comment on attachment 64537 [details] Proposed patch v3 LGTM. re=me
Comment on attachment 64537 [details] Proposed patch v3 Clearing flags on attachment: 64537 Committed r65472: <http://trac.webkit.org/changeset/65472>
All reviewed patches have been landed. Closing bug.
Revision r65472 cherry-picked into qtwebkit-2.1 with commit c2aaec160209c180b6bf0ef9c14e706adf841498