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

Issue 179383002: Add versions of isPointIn*() that take a Path parameter. (Closed)

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

Description

Patch Set 1 #

Total comments: 3

Patch Set 2 : pointer validation check #

Total comments: 5

Patch Set 3 : add validation check and layout test #

Patch Set 4 : rebase #

Patch Set 5 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -15 lines) Patch
M LayoutTests/fast/canvas/canvas-isPointInPath-winding-expected.txt View 1 2 2 chunks +29 lines, -0 lines 0 comments Download
A + LayoutTests/fast/canvas/canvas-isPointInStroke-with-path.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js View 1 2 2 chunks +49 lines, -9 lines 0 comments Download
A LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js View 1 2 1 chunk +107 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 3 chunks +37 lines, -3 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
zino
6 years, 10 months ago (2014-02-25 06:38:43 UTC) #1
Rik
looks great! https://codereview.chromium.org/179383002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/179383002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1007 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1007: return isPointInPathInternal(domPath->path(), x, y, windingRuleString); should you ...
6 years, 10 months ago (2014-02-25 07:46:45 UTC) #2
zino
Thank you for your comment. :) I've just added validation check. Also, I don't think ...
6 years, 10 months ago (2014-02-25 08:46:55 UTC) #3
jcgregorio
https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.idl File Source/core/html/canvas/CanvasRenderingContext2D.idl (right): https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.idl#newcode95 Source/core/html/canvas/CanvasRenderingContext2D.idl:95: boolean isPointInPath(float x, float y); Unfortunately, the methods flagged ...
6 years, 10 months ago (2014-02-25 14:29:08 UTC) #4
Justin Novosad
Was there an "intent to implement" thread on blink-dev for this?
6 years, 10 months ago (2014-02-25 16:40:02 UTC) #5
Justin Novosad
https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1007 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1007: if (!domPath) Shouldn't this case throw a type mismatch ...
6 years, 10 months ago (2014-02-25 16:45:08 UTC) #6
Rik
https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1041 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1041: if (!domPath) On 2014/02/25 16:45:08, junov wrote: > DOM ...
6 years, 10 months ago (2014-02-25 17:37:53 UTC) #7
jcgregorio
https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/179383002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1041 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1041: if (!domPath) It should be caught by the code ...
6 years, 10 months ago (2014-02-25 17:48:30 UTC) #8
zino
Thank you for reviews. I addressed your all comments. Could you please review again?
6 years, 9 months ago (2014-02-28 05:23:38 UTC) #9
Rik
On 2014/02/28 05:23:38, zino wrote: > Thank you for reviews. I addressed your all comments. ...
6 years, 9 months ago (2014-02-28 05:36:42 UTC) #10
jcgregorio
On 2014/02/28 05:36:42, Rik wrote: > On 2014/02/28 05:23:38, zino wrote: > > Thank you ...
6 years, 9 months ago (2014-02-28 15:23:01 UTC) #11
zino
I'm waiting for owner reviews. :)
6 years, 9 months ago (2014-03-03 09:05:46 UTC) #12
Justin Novosad
On 2014/03/03 09:05:46, zino wrote: > I'm waiting for owner reviews. :) lgtm
6 years, 9 months ago (2014-03-03 15:52:14 UTC) #13
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 9 months ago (2014-03-04 02:01:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/179383002/80001
6 years, 9 months ago (2014-03-04 02:02:43 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 18:25:54 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=25590
6 years, 9 months ago (2014-03-04 18:25:55 UTC) #17
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 9 months ago (2014-03-05 00:43:56 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/179383002/80001
6 years, 9 months ago (2014-03-05 00:44:51 UTC) #19
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 06:23:48 UTC) #20
Message was sent while issue was closed.
Change committed as 168437

Powered by Google App Engine
This is Rietveld 408576698