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

Issue 19786002: Implement canvas focus ring methods. (Closed)

Created:
7 years, 5 months ago by dmazzoni
Modified:
7 years, 4 months ago
CC:
blink-reviews, aboxhall, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, aandrey+blink_chromium.org, do-not-use
Visibility:
Public.

Description

Implement canvas focus ring methods. BUG=261998 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155185

Patch Set 1 #

Total comments: 1

Patch Set 2 : Change color from red to blue so it doesn't look like an error #

Total comments: 1

Patch Set 3 : Clear composition mode, fix test #

Patch Set 4 : Rebase #

Patch Set 5 : Make it a text-only test #

Patch Set 6 : Remove api variants that take a DOM path for now #

Patch Set 7 : Rebase #

Patch Set 8 : Use default style rather than from element, move behind flag #

Total comments: 3

Patch Set 9 : Draw path, fix drawCustomFocusRing return value #

Patch Set 10 : Rebase #

Total comments: 2

Patch Set 11 : Remove unused IntRect array #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -1 line) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 2 comments Download
A LayoutTests/accessibility/draw-custom-focus-ring.html View 1 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/draw-custom-focus-ring-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/draw-custom-focus-ring.html View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/draw-custom-focus-ring-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/draw-system-focus-ring.html View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/draw-system-focus-ring-expected.txt View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/accessibility/AccessibilityNodeObject.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/accessibility/AccessibilityObject.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/accessibility/AccessibilityRenderObject.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +71 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
dmazzoni
7 years, 5 months ago (2013-07-19 07:08:18 UTC) #1
Stephen Chennney
My only nit is that the test case rectangle be blue not red. We like ...
7 years, 5 months ago (2013-07-19 12:46:36 UTC) #2
Stephen White
https://chromiumcodereview.appspot.com/19786002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://chromiumcodereview.appspot.com/19786002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode37 Source/core/html/canvas/CanvasRenderingContext2D.cpp:37: #include "core/accessibility/AXObjectCache.h" It seems unfortunate to add this dependency ...
7 years, 5 months ago (2013-07-19 14:37:11 UTC) #3
dmazzoni
On 2013/07/19 14:37:11, Stephen White wrote: > https://chromiumcodereview.appspot.com/19786002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://chromiumcodereview.appspot.com/19786002/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode37 ...
7 years, 5 months ago (2013-07-19 15:37:25 UTC) #4
dmazzoni
I updated the color from red to blue. If this looks basically okay, should I ...
7 years, 5 months ago (2013-07-19 16:46:57 UTC) #5
Stephen White
On 2013/07/19 16:46:57, Dominic Mazzoni wrote: > I updated the color from red to blue. ...
7 years, 5 months ago (2013-07-19 21:30:48 UTC) #6
Stephen White
https://codereview.chromium.org/19786002/diff/9001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/19786002/diff/9001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2367 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2367: I notice the spec also says that the focus ...
7 years, 5 months ago (2013-07-19 21:31:10 UTC) #7
dmazzoni
On 2013/07/19 21:30:48, Stephen White wrote: > That's an interesting idea, but we don't usually ...
7 years, 5 months ago (2013-07-19 22:24:54 UTC) #8
dmazzoni
On 2013/07/19 21:31:10, Stephen White wrote: > https://codereview.chromium.org/19786002/diff/9001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://codereview.chromium.org/19786002/diff/9001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2367 ...
7 years, 5 months ago (2013-07-19 22:25:50 UTC) #9
Stephen White
On 2013/07/19 22:25:50, Dominic Mazzoni wrote: > On 2013/07/19 21:31:10, Stephen White wrote: > > ...
7 years, 5 months ago (2013-07-22 16:27:59 UTC) #10
Stephen White
On 2013/07/22 16:27:59, Stephen White wrote: > On 2013/07/19 22:25:50, Dominic Mazzoni wrote: > > ...
7 years, 5 months ago (2013-07-22 16:30:28 UTC) #11
dmazzoni
On 2013/07/22 16:30:28, Stephen White wrote: > Actually, looking at the test again, it looks ...
7 years, 5 months ago (2013-07-22 18:49:42 UTC) #12
Rik
I'm unsure if you should already implement the customfocusring methods that take a path object. ...
7 years, 5 months ago (2013-07-23 03:45:15 UTC) #13
dmazzoni
On 2013/07/23 03:45:15, Rik wrote: > I'm unsure if you should already implement the customfocusring ...
7 years, 5 months ago (2013-07-23 04:57:43 UTC) #14
dmazzoni
Stephen, any thoughts? In terms of where to get the parameters to draw the focus ...
7 years, 5 months ago (2013-07-24 17:44:36 UTC) #15
Stephen White
On 2013/07/24 17:44:36, Dominic Mazzoni wrote: > Stephen, any thoughts? > > In terms of ...
7 years, 5 months ago (2013-07-24 19:24:02 UTC) #16
dmazzoni
I moved it behind the experimentalCanvasFeatures flag and made it use the default focus ring ...
7 years, 5 months ago (2013-07-26 23:04:00 UTC) #17
jbroman
moved comment from blink-dev to code review as requested https://codereview.chromium.org/19786002/diff/58001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/19786002/diff/58001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2388 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2388: ...
7 years, 4 months ago (2013-07-29 17:25:07 UTC) #18
Rik
On 2013/07/23 04:57:43, Dominic Mazzoni wrote: > On 2013/07/23 03:45:15, Rik wrote: > > I'm ...
7 years, 4 months ago (2013-07-29 20:09:52 UTC) #19
Rik
https://codereview.chromium.org/19786002/diff/58001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/19786002/diff/58001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2388 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2388: c->drawFocusRing(rects, style->outlineWidth(), style->outlineOffset(), focusRingColor); On 2013/07/29 17:25:08, jbroman wrote: ...
7 years, 4 months ago (2013-07-29 20:09:59 UTC) #20
dmazzoni
On 2013/07/29 20:09:52, Rik wrote: > Did this get resolved? Are you pulling the info ...
7 years, 4 months ago (2013-07-29 21:44:21 UTC) #21
Rik
On 2013/07/29 21:44:21, Dominic Mazzoni wrote: > On 2013/07/29 20:09:52, Rik wrote: > > Did ...
7 years, 4 months ago (2013-07-30 03:46:20 UTC) #22
dmazzoni
We have support on the "Intent to implement" thread as well. @senorblanco, any last feedback ...
7 years, 4 months ago (2013-07-30 15:35:27 UTC) #23
Rik
On 2013/07/30 15:35:27, Dominic Mazzoni wrote: > We have support on the "Intent to implement" ...
7 years, 4 months ago (2013-07-30 15:43:48 UTC) #24
dmazzoni
On 2013/07/30 15:43:48, Rik wrote: > The try bots are all red. Shouldn't that be ...
7 years, 4 months ago (2013-07-30 15:46:29 UTC) #25
jbroman
On 2013/07/30 15:46:29, Dominic Mazzoni wrote: > On 2013/07/30 15:43:48, Rik wrote: > > The ...
7 years, 4 months ago (2013-07-30 15:58:37 UTC) #26
Stephen White
LGTM, although IWBN to remove the "rects" stuff if possible. https://codereview.chromium.org/19786002/diff/75001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/19786002/diff/75001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2410 ...
7 years, 4 months ago (2013-07-30 16:24:22 UTC) #27
dmazzoni
https://codereview.chromium.org/19786002/diff/75001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/19786002/diff/75001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode2410 Source/core/html/canvas/CanvasRenderingContext2D.cpp:2410: rects.append(pixelSnappedIntRect(LayoutRect(path.boundingRect()))); On 2013/07/30 16:24:23, Stephen White wrote: > After ...
7 years, 4 months ago (2013-07-30 16:27:10 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/19786002/81001
7 years, 4 months ago (2013-07-30 16:27:36 UTC) #29
commit-bot: I haz the power
Change committed as 155185
7 years, 4 months ago (2013-07-30 22:29:38 UTC) #30
ojan
https://chromiumcodereview.appspot.com/19786002/diff/81001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://chromiumcodereview.appspot.com/19786002/diff/81001/LayoutTests/TestExpectations#newcode1576 LayoutTests/TestExpectations:1576: crbug.com/261998 inspector/profiler/canvas2d/canvas2d-api-changes.html [ Failure ] Should this have been ...
7 years, 4 months ago (2013-07-31 16:54:52 UTC) #31
dmazzoni
7 years, 4 months ago (2013-07-31 17:00:22 UTC) #32
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/19786002/diff/81001/LayoutTests/TestEx...
File LayoutTests/TestExpectations (right):

https://chromiumcodereview.appspot.com/19786002/diff/81001/LayoutTests/TestEx...
LayoutTests/TestExpectations:1576: crbug.com/261998
inspector/profiler/canvas2d/canvas2d-api-changes.html [ Failure ]
On 2013/07/31 16:54:52, ojan wrote:
> Should this have been a NeedsRebaseline line instead of Failure?

I was told api changes are not rebaseline-able.

Perhaps the inspector team wants to manually look at api changes?

Powered by Google App Engine
This is Rietveld 408576698