Apply vector-effect transform to path geometry - not stroke geometry

When drawing line caps for zero-length subpaths, the path-derived
geometry is the position of the linecap, and not the generated shape.
Hence the non-scaling-stroke transform should be applied to the position
where the line cap shape should be drawn, and no the shape itself.
This also means that we can simplify the code, by calling drawRect/Oval
directly instead of going through a Path object.

BUG=497498

Review URL: https://codereview.chromium.org/1143313007

git-svn-id: svn://svn.chromium.org/blink/trunk@196684 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed