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

Issue 1185343003: Implements the ability to get and set the caret position and the current selection from anywhere in… (Closed)

Created:
5 years, 6 months ago by nektarios
Modified:
5 years, 3 months ago
Reviewers:
dmazzoni, Mike West
CC:
aboxhall, blink-reviews, dglazkov+blink, je_julie
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implements the ability to get and set the caret position and the current selection from anywhere in the accessibility tree. This is required in order to support contenteditables on some platforms. BUG=491027 Committed: https://crrev.com/e97cb85ced628844abb138653971aee2eb1c5c99 git-svn-id: svn://svn.chromium.org/blink/trunk@199415 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fixed some compiler errors. #

Total comments: 8

Patch Set 4 : Addressed more comments from reviewer. #

Total comments: 5

Patch Set 5 : Addressed more comments from reviewer. #

Patch Set 6 : Fixed retrieving the selection in text controls. #

Total comments: 6

Patch Set 7 : Adopted final round of recommendations and improved fixed layout test #

Patch Set 8 : Moved layout tests to another CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -492 lines) Patch
M LayoutTests/accessibility/contenteditable-caret-position.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -94 lines 0 comments Download
D LayoutTests/accessibility/contenteditable-caret-position-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -108 lines 0 comments Download
D LayoutTests/accessibility/contenteditable-selection.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -129 lines 0 comments Download
D LayoutTests/accessibility/contenteditable-selection-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -56 lines 0 comments Download
M Source/modules/accessibility/AXInlineTextBox.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/accessibility/AXInlineTextBox.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/accessibility/AXLayoutObject.h View 1 2 3 4 5 6 5 chunks +8 lines, -8 lines 0 comments Download
M Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 5 chunks +186 lines, -63 lines 0 comments Download
M Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 4 chunks +53 lines, -15 lines 0 comments Download
M Source/web/WebAXObject.cpp View 1 2 3 4 5 6 6 chunks +55 lines, -12 lines 0 comments Download
M public/web/WebAXObject.h View 1 2 3 4 5 6 2 chunks +15 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (5 generated)
domenic
5 years, 6 months ago (2015-06-16 16:44:10 UTC) #2
dmazzoni
https://codereview.chromium.org/1185343003/diff/1/Source/modules/accessibility/AXLayoutObject.cpp File Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/1185343003/diff/1/Source/modules/accessibility/AXLayoutObject.cpp#newcode1842 Source/modules/accessibility/AXLayoutObject.cpp:1842: AXSelection textSelection = textControlSelection(); This only seems to work ...
5 years, 6 months ago (2015-06-16 17:24:04 UTC) #3
blink-reviews
On 6/16/2015 1:24 PM, dmazzoni@chromium.org wrote: > > https://codereview.chromium.org/1185343003/diff/1/Source/modules/accessibility/AXLayoutObject.cpp > > File Source/modules/accessibility/AXLayoutObject.cpp (right): > ...
5 years, 6 months ago (2015-06-22 14:48:32 UTC) #4
dmazzoni
On 2015/06/22 14:48:32, blink-reviews wrote: > > As an example, if the selection start is ...
5 years, 6 months ago (2015-06-22 16:58:47 UTC) #5
dmazzoni
https://codereview.chromium.org/1185343003/diff/40001/Source/modules/accessibility/AXLayoutObject.cpp File Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/1185343003/diff/40001/Source/modules/accessibility/AXLayoutObject.cpp#newcode1846 Source/modules/accessibility/AXLayoutObject.cpp:1846: // Find the closest parent that has a node. ...
5 years, 6 months ago (2015-06-22 17:13:35 UTC) #6
blink-reviews
On 6/22/2015 12:58 PM, dmazzoni@chromium.org wrote: > On 2015/06/22 14:48:32, blink-reviews wrote: >> > As ...
5 years, 6 months ago (2015-06-23 23:40:25 UTC) #7
blink-reviews
https://codereview.chromium.org/1185343003/diff/40001/Source/modules/accessibility/AXLayoutObject.cpp > File Source/modules/accessibility/AXLayoutObject.cpp (right): > > https://codereview.chromium.org/1185343003/diff/40001/Source/modules/accessibility/AXLayoutObject.cpp#newcode1846 > > Source/modules/accessibility/AXLayoutObject.cpp:1846: // Find the > ...
5 years, 6 months ago (2015-06-23 23:40:35 UTC) #8
dmazzoni
> > > public/web/WebAXObject.h:158: // The following selection functions get > > or set the ...
5 years, 6 months ago (2015-06-23 23:55:35 UTC) #9
dmazzoni
Getting closer! https://codereview.chromium.org/1185343003/diff/60001/Source/modules/accessibility/AXLayoutObject.cpp File Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/1185343003/diff/60001/Source/modules/accessibility/AXLayoutObject.cpp#newcode1859 Source/modules/accessibility/AXLayoutObject.cpp:1859: while (anchorObject = axObjectCache()->get(anchorNode) This loop doesn't ...
5 years, 6 months ago (2015-06-24 00:11:01 UTC) #10
blink-reviews
On 6/23/2015 8:11 PM, dmazzoni@chromium.org wrote: > Getting closer! > > > https://codereview.chromium.org/1185343003/diff/60001/Source/modules/accessibility/AXLayoutObject.cpp > > ...
5 years, 6 months ago (2015-06-24 19:11:05 UTC) #11
blink-reviews
On 6/23/2015 7:55 PM, Dominic Mazzoni wrote: > > > public/web/WebAXObject.h:158: // The following selection ...
5 years, 6 months ago (2015-06-24 19:17:43 UTC) #12
dmazzoni
On 2015/06/24 19:11:05, blink-reviews wrote: > > Source/modules/accessibility/AXObject.h:410: return anchorObject == > > focusObject || ...
5 years, 5 months ago (2015-06-26 05:55:46 UTC) #13
dmazzoni
lgtm +mkwst for Source/web and public/web I only have some style suggestions left and one ...
5 years, 5 months ago (2015-06-26 06:14:38 UTC) #15
Mike West
LGTM, once you're convinced that Dominic/Alice will be happy. :)
5 years, 5 months ago (2015-06-29 08:02:57 UTC) #16
blink-reviews
Most recommendations adopted, but still writing extensive tests which will be moved to another CL. ...
5 years, 5 months ago (2015-07-23 00:18:32 UTC) #17
nektarios
Tested with NVDA and Jaws. Tested with textarea and <input type="text"> and <input type="password">. Tested ...
5 years, 5 months ago (2015-07-23 19:12:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185343003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1185343003/140001
5 years, 5 months ago (2015-07-24 03:54:42 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199415
5 years, 5 months ago (2015-07-24 04:23:42 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:45:30 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e97cb85ced628844abb138653971aee2eb1c5c99

Powered by Google App Engine
This is Rietveld 408576698