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

Issue 191923002: CanvasPathMethods should be shared with CRC2D and Path2D (Closed)

Created:
6 years, 9 months ago by zino
Modified:
6 years, 9 months ago
CC:
blink-reviews, arv+blink, dglazkov+blink, Rik, adamk+blink_chromium.org, aandrey+blink_chromium.org, watchdog-blink-watchlist_google.com, Nils Barth (inactive)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

CanvasPathMethods should be shared with CRC2D and Path2D All methods in CanvasPathMethods should be shared with CanvasRenderingContext2D and Path2D. CanvasPathMethods has been differently defined in CRC2D and Path2D until now. It is against the spec and it makes it more difficult to maintain. Actually, CRC2D.idl has defined ellipse function but Path2D.idl has omitted the function. Following codes will make trouble. var path = new Path(); path.ellipse(100, 100, 50, 50, 0, 0, 6.28, false); // undefined error To solve this problem, it should be changed to share CanvasPathMethods with CRC2D and Path2D. And to prevent happening same problem, we should add layout test with respect to all Path2D methods. Spec: http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas/#canvaspathmethods Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169316

Patch Set 1 #

Patch Set 2 : layout test #

Total comments: 5

Patch Set 3 #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -43 lines) Patch
M LayoutTests/fast/canvas/canvas-path-object-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-path-object.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasPathMethods.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A Source/core/html/canvas/CanvasPathMethods.idl View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M Source/core/html/canvas/Path2D.idl View 1 2 3 4 1 chunk +2 lines, -32 lines 2 comments Download

Messages

Total messages: 20 (0 generated)
zino
Review please. Thank you :)
6 years, 9 months ago (2014-03-09 02:08:30 UTC) #1
Inactive
The changes are according to spec and the change looks good technically. However, please: - ...
6 years, 9 months ago (2014-03-09 04:26:36 UTC) #2
zino
Thank you for detailed explanation :) On 2014/03/09 04:26:36, Chris Dumez wrote: > The changes ...
6 years, 9 months ago (2014-03-10 07:17:19 UTC) #3
Inactive
On 2014/03/10 07:17:19, zino wrote: > Thank you for detailed explanation :) > > On ...
6 years, 9 months ago (2014-03-10 15:36:06 UTC) #4
Inactive
On 2014/03/10 15:36:06, Chris Dumez wrote: > On 2014/03/10 07:17:19, zino wrote: > > Thank ...
6 years, 9 months ago (2014-03-10 15:37:17 UTC) #5
Justin Novosad
https://codereview.chromium.org/191923002/diff/40001/Source/core/html/canvas/CanvasPathMethods.h File Source/core/html/canvas/CanvasPathMethods.h (right): https://codereview.chromium.org/191923002/diff/40001/Source/core/html/canvas/CanvasPathMethods.h#newcode56 Source/core/html/canvas/CanvasPathMethods.h:56: static void closePath(CanvasPathMethods& object) How is adding this indirection ...
6 years, 9 months ago (2014-03-10 18:15:37 UTC) #6
Justin Novosad
I am not sure I understand how this change affects spec compliance in a tangible ...
6 years, 9 months ago (2014-03-10 18:31:19 UTC) #7
Inactive
On 2014/03/10 18:31:19, junov wrote: > I am not sure I understand how this change ...
6 years, 9 months ago (2014-03-10 18:39:55 UTC) #8
Justin Novosad
On 2014/03/10 18:39:55, Chris Dumez wrote: > The web-exposed behavior change is unrelated to interface ...
6 years, 9 months ago (2014-03-10 18:56:19 UTC) #9
eseidel
What parts of this are observable from JS?
6 years, 9 months ago (2014-03-14 16:10:31 UTC) #10
eseidel
https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl File Source/core/html/canvas/Path2D.idl (left): https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl#oldcode40 Source/core/html/canvas/Path2D.idl:40: void moveTo([Default=Undefined] optional float x, So these are no ...
6 years, 9 months ago (2014-03-14 16:12:10 UTC) #11
Inactive
On 2014/03/14 16:12:10, eseidel wrote: > https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl > File Source/core/html/canvas/Path2D.idl (left): > > https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl#oldcode40 > ...
6 years, 9 months ago (2014-03-14 17:40:29 UTC) #12
Justin Novosad
https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl File Source/core/html/canvas/Path2D.idl (left): https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl#oldcode40 Source/core/html/canvas/Path2D.idl:40: void moveTo([Default=Undefined] optional float x, On 2014/03/14 16:12:11, eseidel ...
6 years, 9 months ago (2014-03-14 18:00:40 UTC) #13
Inactive
On 2014/03/14 18:00:40, junov wrote: > https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl > File Source/core/html/canvas/Path2D.idl (left): > > https://codereview.chromium.org/191923002/diff/80001/Source/core/html/canvas/Path2D.idl#oldcode40 > ...
6 years, 9 months ago (2014-03-14 18:05:33 UTC) #14
eseidel
If path2d isn't shipping, lgtm. Otherwise throwing exceptions where we didn't before is concerning and ...
6 years, 9 months ago (2014-03-14 21:15:20 UTC) #15
zino
On 2014/03/14 21:15:20, eseidel wrote: > If path2d isn't shipping, lgtm. Otherwise throwing exceptions where ...
6 years, 9 months ago (2014-03-16 15:21:18 UTC) #16
dshwang
On 2014/03/16 15:21:18, zino wrote: > It is not shipping yet. > Would you mind ...
6 years, 9 months ago (2014-03-16 17:03:12 UTC) #17
eseidel
lgtm
6 years, 9 months ago (2014-03-16 20:40:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/191923002/80001
6 years, 9 months ago (2014-03-16 20:40:50 UTC) #19
commit-bot: I haz the power
6 years, 9 months ago (2014-03-16 22:50:13 UTC) #20
Message was sent while issue was closed.
Change committed as 169316

Powered by Google App Engine
This is Rietveld 408576698