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

Issue 354333002: Add path option(path2d) for hit regions on canvas2d. (Closed)

Created:
6 years, 5 months ago by zino
Modified:
6 years, 5 months ago
CC:
blink-reviews, arv+blink, blink-reviews-html_chromium.org, abarth-chromium, dglazkov+blink, blink-reviews-bindings_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : add test for transform #

Total comments: 4

Patch Set 3 : simplify #

Total comments: 2

Patch Set 4 : nit and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -34 lines) Patch
A LayoutTests/fast/canvas/canvas-hit-regions-path2d-test.html View 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-hit-regions-path2d-test-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A + LayoutTests/fast/canvas/canvas-hit-regions-path2d-transform-test.html View 1 2 3 7 chunks +33 lines, -31 lines 0 comments Download
A + LayoutTests/fast/canvas/canvas-hit-regions-path2d-transform-test-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
zino
Please take a look.
6 years, 5 months ago (2014-06-28 16:39:53 UTC) #1
Rik
https://codereview.chromium.org/354333002/diff/1/LayoutTests/fast/canvas/canvas-hit-regions-path2d-test.html File LayoutTests/fast/canvas/canvas-hit-regions-path2d-test.html (right): https://codereview.chromium.org/354333002/diff/1/LayoutTests/fast/canvas/canvas-hit-regions-path2d-test.html#newcode39 LayoutTests/fast/canvas/canvas-hit-regions-path2d-test.html:39: context.fillStyle = "pink"; Try to add scaling to the ...
6 years, 5 months ago (2014-06-29 03:22:22 UTC) #2
zino
Thank you for review. FYI: Currently, we can't get correct results because of context.isClipMode() bug. ...
6 years, 5 months ago (2014-06-29 04:07:18 UTC) #3
zino
I've just updated a test for path2d with transform operation. Could you please review this? ...
6 years, 5 months ago (2014-06-30 04:34:20 UTC) #4
Rik
lgtm https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2390 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2390: exceptionState.throwDOMException(NotSupportedError, "The specified path has no pixels."); I ...
6 years, 5 months ago (2014-06-30 16:42:00 UTC) #5
haraken
LGTM for bindings/.
6 years, 5 months ago (2014-06-30 23:17:41 UTC) #6
c.shu
https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2384 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2384: The above can be simplified as Path specifiedPath = ...
6 years, 5 months ago (2014-07-01 02:03:28 UTC) #7
zino
Thank you for review. https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/354333002/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2384 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2384: On 2014/07/01 02:03:28, c.shu wrote: ...
6 years, 5 months ago (2014-07-01 05:37:29 UTC) #8
Rik
On 2014/07/01 05:37:29, zino wrote: > On 2014/06/30 16:42:00, Rik wrote: > > I know ...
6 years, 5 months ago (2014-07-02 21:27:40 UTC) #9
zino
On 2014/07/02 21:27:40, Rik wrote: > On 2014/07/01 05:37:29, zino wrote: > > On 2014/06/30 ...
6 years, 5 months ago (2014-07-04 08:47:20 UTC) #10
Justin Novosad
lgtm, with nit https://codereview.chromium.org/354333002/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/354333002/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2378 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2378: Path specifiedPath = path2d ? path2d->path() ...
6 years, 5 months ago (2014-07-04 15:02:45 UTC) #11
zino
Thank you for review. https://codereview.chromium.org/354333002/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/354333002/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2378 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2378: Path specifiedPath = path2d ? ...
6 years, 5 months ago (2014-07-05 03:01:22 UTC) #12
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 5 months ago (2014-07-05 03:01:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/354333002/60001
6 years, 5 months ago (2014-07-05 03:02:06 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-05 04:08:11 UTC) #15
Message was sent while issue was closed.
Change committed as 177559

Powered by Google App Engine
This is Rietveld 408576698