DescriptionZero-length path with round/square lineCap should paint circle on Canvas
Currently CanvasPathMethods does a premature optimization in
stroking line, curve, arc, rect---it drops the point when the
point is identical to current point, or in the case or
curve, drops the curves when the two given points are
identical. The results in incorrect rendering of zero-length
paths with caps, based on the specification
(https://www.w3.org/TR/2dcontext/#drawing-paths-to-the-canvas).
The five layout tests in philip/tests/2d.path.stroke.prune.*.html
are outdated canvas tests. Based on the spec change and the test
results here
(https://philip.html5.org/tests/canvas/suite/tests/results.html),
other browsers report false positive errors on these
tests too. We thus match what other browsers do in this
aspect and rebaseline the expected outputs.
BUG=322807, 577655
Committed: https://crrev.com/245b756e89823ae1e668bbc52cf57493c87fb0bd
Cr-Commit-Position: refs/heads/master@{#388551}
Patch Set 1 #Patch Set 2 : NeedsManualRebaseline #
Total comments: 1
Patch Set 3 : Corrected outdated philip tests #Patch Set 4 : Rebaseline outdated philip tests to match IE9 and Firefox #Messages
Total messages: 31 (17 generated)
|