Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1094)

Issue 1883693002: Zero-length path with round/square lineCap should paint circle on Canvas (Closed)

Created:
4 years, 8 months ago by xlai (Olivia)
Modified:
4 years, 8 months ago
Reviewers:
ajuma, Justin Novosad
CC:
chromium-reviews, ajuma+watch-canvas_chromium.org, dshwang, haraken, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Zero-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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/canvas/philip/tests/2d.path.stroke.prune.arc-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/canvas/philip/tests/2d.path.stroke.prune.closed-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/canvas/philip/tests/2d.path.stroke.prune.curve-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/canvas/philip/tests/2d.path.stroke.prune.line-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/canvas/philip/tests/2d.path.stroke.prune.rect-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-zero-length-lineCap.html View 1 chunk +24 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/canvas-zero-length-lineCap-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/fast/canvas/canvas-zero-length-lineCap-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasPathMethods.cpp View 1 2 3 4 chunks +6 lines, -11 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
xlai (Olivia)
Spec here (https://www.w3.org/TR/2dcontext/#drawing-paths-to-the-canvas) says: Points with no lines coming out of them must have two ...
4 years, 8 months ago (2016-04-13 00:59:56 UTC) #2
ajuma
lgtm
4 years, 8 months ago (2016-04-13 14:26:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883693002/1
4 years, 8 months ago (2016-04-13 14:35:34 UTC) #5
Justin Novosad
lgtm
4 years, 8 months ago (2016-04-18 20:39:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883693002/1
4 years, 8 months ago (2016-04-18 22:00:17 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/170042)
4 years, 8 months ago (2016-04-18 22:09:50 UTC) #12
xlai (Olivia)
https://codereview.chromium.org/1883693002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1883693002/diff/20001/third_party/WebKit/LayoutTests/TestExpectations#newcode114 third_party/WebKit/LayoutTests/TestExpectations:114: crbug.com/577655 fast/canvas/canvas-zero-length-lineCap.html [ NeedsManualRebaseline ] We can't use NeedsRebaseline ...
4 years, 8 months ago (2016-04-18 22:32:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883693002/20001
4 years, 8 months ago (2016-04-18 22:34:05 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/207085)
4 years, 8 months ago (2016-04-18 23:58:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883693002/40001
4 years, 8 months ago (2016-04-19 13:53:37 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/213542)
4 years, 8 months ago (2016-04-19 14:47:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883693002/60001
4 years, 8 months ago (2016-04-20 17:59:07 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-20 19:35:00 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:25:31 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/245b756e89823ae1e668bbc52cf57493c87fb0bd
Cr-Commit-Position: refs/heads/master@{#388551}

Powered by Google App Engine
This is Rietveld 408576698