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

Issue 196243007: Implement CRC2D.scrollPathIntoView() on Canvas (Closed)

Created:
6 years, 9 months ago by zino
Modified:
6 years, 8 months ago
Reviewers:
Rik, Justin Novosad, eseidel
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

Implement CRC2D.scrollPathIntoView() on Canvas The method's behavior is very similar to element.scrollIntoView(). This is just a another version about path on canvas. ('path' means both current default path and path object) This is especially useful on devices with small screens, where the whole canvas might not be visible at once. Intent to Implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/KLFSBeP42VQ The spec reference is: http://www.w3.org/TR/2dcontext/#dom-context-2d-scrollpathintoview http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-scrollpathintoview BUG=351696 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170524

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : update and layout test #

Total comments: 5

Patch Set 4 : new patch #

Patch Set 5 : update layout test #

Total comments: 2

Patch Set 6 : update comment #

Patch Set 7 : TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -0 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-scroll-path-into-view.html View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt View 1 2 3 4 1 chunk +102 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.js View 1 2 3 4 1 chunk +158 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
zino
Could you please review?
6 years, 9 months ago (2014-03-20 16:03:27 UTC) #1
Rik
https://codereview.chromium.org/196243007/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/196243007/diff/40001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1114 Source/core/html/canvas/CanvasRenderingContext2D.cpp:1114: scrollPathIntoViewInternal(m_path); Does this take the current CTM into account? ...
6 years, 9 months ago (2014-03-20 16:22:19 UTC) #2
Justin Novosad
https://codereview.chromium.org/196243007/diff/40001/LayoutTests/fast/canvas/canvas-scroll-path-into-view.html File LayoutTests/fast/canvas/canvas-scroll-path-into-view.html (right): https://codereview.chromium.org/196243007/diff/40001/LayoutTests/fast/canvas/canvas-scroll-path-into-view.html#newcode100 LayoutTests/fast/canvas/canvas-scroll-path-into-view.html:100: scrollTest(container, context, path); Need additional test case with CTM ...
6 years, 9 months ago (2014-03-20 20:03:12 UTC) #3
Rik
On 2014/03/20 20:03:12, junov wrote: > https://codereview.chromium.org/196243007/diff/40001/LayoutTests/fast/canvas/canvas-scroll-path-into-view.html > File LayoutTests/fast/canvas/canvas-scroll-path-into-view.html (right): > > https://codereview.chromium.org/196243007/diff/40001/LayoutTests/fast/canvas/canvas-scroll-path-into-view.html#newcode100 > ...
6 years, 9 months ago (2014-03-20 20:24:51 UTC) #4
zino
Thanks to everyone. I addressed all your comments and I uploaded a new patch set. ...
6 years, 9 months ago (2014-03-27 17:50:17 UTC) #5
Justin Novosad
Much better test! Just a few minor requests. Otherwise lgtm. https://codereview.chromium.org/196243007/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/196243007/diff/100001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode1136 ...
6 years, 9 months ago (2014-03-27 21:26:21 UTC) #6
zino
On 2014/03/27 21:26:21, junov wrote: > Much better test! > Just a few minor requests. ...
6 years, 8 months ago (2014-03-31 13:45:23 UTC) #7
Justin Novosad
On 2014/03/31 13:45:23, zino wrote: > > Thank you for review & lgtm :) > ...
6 years, 8 months ago (2014-03-31 17:14:01 UTC) #8
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 8 months ago (2014-04-01 00:33:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/196243007/120001
6 years, 8 months ago (2014-04-01 00:33:16 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 01:05:19 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-01 01:05:20 UTC) #12
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 8 months ago (2014-04-01 05:29:20 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/196243007/140001
6 years, 8 months ago (2014-04-01 05:29:30 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 05:39:43 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 8 months ago (2014-04-01 05:39:44 UTC) #16
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 8 months ago (2014-04-01 06:45:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/196243007/140001
6 years, 8 months ago (2014-04-01 06:45:33 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 07:21:26 UTC) #19
Message was sent while issue was closed.
Change committed as 170524

Powered by Google App Engine
This is Rietveld 408576698