more zero-length changes for svg compatibility
authorcaryclark <caryclark@google.com>
Wed, 9 Sep 2015 14:04:33 +0000 (07:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Sep 2015 14:04:33 +0000 (07:04 -0700)
commit62fb1ba1786863e545c89839b5706ad5151cec15
treee880b4c5ad03e597cd2ae09515552bc096c89844
parenta1254acdb344174e761f5061c820559dab64a74c
more zero-length changes for svg compatibility

If a path contains a moveTo followed by a line or curve,
even if the line or curve has no length, SVG expects
the end caps to draw if the cap style is round or square.

Fredrik Söderquist attached a patch to the chrome bug
(slightly modified here) that fixes layout test failures
resulting from deleting special-case code in SVG
dealing with zero-length path segments.

R=reed@google.com,fs@opera.com
BUG=22974

Review URL: https://codereview.chromium.org/1330623003
gm/strokes.cpp
src/core/SkCanvas.cpp
src/core/SkStroke.cpp
tests/EmptyPathTest.cpp