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

Issue 2712603007: Select All present even all selectable text has been selected (Closed)

Created:
3 years, 10 months ago by amaralp
Modified:
3 years, 9 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Select All present even all selectable text has been selected When you right click in an empty text box "Select All" isn't grayed out. Also if you were to use select all to select all text and then right click you "Select All" would not be grayed out even though all text is already selected. This will also be used in fixing Clank bug: crbug.com/615435 BUG=696134 Review-Url: https://codereview.chromium.org/2712603007 Cr-Commit-Position: refs/heads/master@{#457617} Committed: https://chromium.googlesource.com/chromium/src/+/c9178af4426d3a2fc543bd77e929cea2562d8d4c

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressing yosin's comments #

Patch Set 3 : fixed canSelectAll #

Patch Set 4 : added tests #

Patch Set 5 : added enabledSelectAll to EditorCommand #

Patch Set 6 : Basic implementation for text control #

Patch Set 7 : Random nits #

Total comments: 1

Patch Set 8 : removed use of deprecated function #

Patch Set 9 : document() is a pointer #

Patch Set 10 : added layout test #

Total comments: 4

Patch Set 11 : added tests #

Patch Set 12 : Rebase #

Patch Set 13 : only set edit flags when document is HTML or XHTML #

Total comments: 2

Patch Set 14 : yosin's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -17 lines) Patch
A third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_contenteditable.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_input.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_textarea.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +19 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (43 generated)
amaralp
PTAL, currently my implementation of |FrameSelection::canSelectAll()| always returns true. I think the problem may be ...
3 years, 10 months ago (2017-02-25 04:38:43 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2712603007/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2712603007/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode629 third_party/WebKit/Source/core/editing/FrameSelection.cpp:629: Node* FrameSelection::selectAllRoot() { Since this function returns root node ...
3 years, 9 months ago (2017-02-27 03:46:40 UTC) #6
amaralp
https://codereview.chromium.org/2712603007/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2712603007/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode629 third_party/WebKit/Source/core/editing/FrameSelection.cpp:629: Node* FrameSelection::selectAllRoot() { On 2017/02/27 at 03:46:40, yosin_UTC9 wrote: ...
3 years, 9 months ago (2017-02-27 05:02:18 UTC) #7
yosin_UTC9
lgtm Thanks for quick work!
3 years, 9 months ago (2017-02-27 05:11:12 UTC) #8
amaralp
On 2017/02/27 at 05:11:12, yosin wrote: > lgtm > > Thanks for quick work! Thank ...
3 years, 9 months ago (2017-02-27 05:23:41 UTC) #9
yosin_UTC9
On 2017/02/27 at 05:23:41, amaralp wrote: > On 2017/02/27 at 05:11:12, yosin wrote: > > ...
3 years, 9 months ago (2017-02-27 06:21:56 UTC) #10
amaralp
> Sorry, I missed your question. > The FIXME is wrong. [div, 0] != [img, ...
3 years, 9 months ago (2017-02-27 19:17:33 UTC) #11
yosin_UTC9
On 2017/02/27 at 19:17:33, amaralp wrote: > > Sorry, I missed your question. > > ...
3 years, 9 months ago (2017-02-28 02:30:59 UTC) #12
amaralp
> Thanks for clarification. > How about using Position::toOffsetInAnchor(), aka normalize Position? > This converts ...
3 years, 9 months ago (2017-02-28 02:49:56 UTC) #13
yosin_UTC9
On 2017/02/28 at 02:49:56, amaralp wrote: > > Thanks for clarification. > > How about ...
3 years, 9 months ago (2017-03-02 02:15:10 UTC) #21
amaralp
On 2017/03/02 at 02:15:10, yosin wrote: > On 2017/02/28 at 02:49:56, amaralp wrote: > > ...
3 years, 9 months ago (2017-03-02 03:10:26 UTC) #22
amaralp
> > Another question is what should we do context menu showed on user-select:none[1]? > ...
3 years, 9 months ago (2017-03-02 03:46:35 UTC) #23
aelias_OOO_until_Jul13
On 2017/03/02 at 03:10:26, amaralp wrote: > > In current implementation, "selectAll" command is always ...
3 years, 9 months ago (2017-03-02 04:01:51 UTC) #24
yosin_UTC9
On 2017/03/02 at 03:10:26, amaralp wrote: > On 2017/03/02 at 02:15:10, yosin wrote: > > ...
3 years, 9 months ago (2017-03-02 04:29:05 UTC) #25
yosin_UTC9
On 2017/03/02 at 04:01:51, aelias wrote: > On 2017/03/02 at 03:10:26, amaralp wrote: > > ...
3 years, 9 months ago (2017-03-02 04:35:59 UTC) #26
amaralp
I've implemented enabledSelectAll() as you instructed. As for the TODO's the most important one for ...
3 years, 9 months ago (2017-03-03 23:25:58 UTC) #29
yosin_UTC9
https://codereview.chromium.org/2712603007/diff/120001/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp File third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp (right): https://codereview.chromium.org/2712603007/diff/120001/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp#newcode1964 third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp:1964: frame.selection().computeVisibleSelectionInDOMTreeDeprecated(); Please don't use deprecated version in new code. ...
3 years, 9 months ago (2017-03-06 04:54:22 UTC) #30
yosin_UTC9
On 2017/03/06 at 04:54:22, yosin_UTC9 wrote: > https://codereview.chromium.org/2712603007/diff/120001/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp > File third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp (right): > > https://codereview.chromium.org/2712603007/diff/120001/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp#newcode1964 ...
3 years, 9 months ago (2017-03-07 02:13:11 UTC) #39
amaralp
On 2017/03/07 at 02:13:11, yosin wrote: > On 2017/03/06 at 04:54:22, yosin_UTC9 wrote: > > ...
3 years, 9 months ago (2017-03-09 02:22:50 UTC) #42
yosin_UTC9
On 2017/03/09 at 02:22:50, amaralp wrote: > On 2017/03/07 at 02:13:11, yosin wrote: > > ...
3 years, 9 months ago (2017-03-09 03:29:06 UTC) #45
yosin_UTC9
https://codereview.chromium.org/2712603007/diff/180001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_empty_textarea.html File third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_empty_textarea.html (right): https://codereview.chromium.org/2712603007/diff/180001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_empty_textarea.html#newcode4 third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_empty_textarea.html:4: <textarea id="textarea"></textarea> We also want to have test for ...
3 years, 9 months ago (2017-03-09 03:33:07 UTC) #46
amaralp
> |ASSERT_NO_EXCEPTION| is enough, since we don't expect queryCommandEnabled() failed on "selectAll", at this time. ...
3 years, 9 months ago (2017-03-14 00:45:27 UTC) #55
yosin_UTC9
On 2017/03/14 at 00:45:27, amaralp wrote: > > |ASSERT_NO_EXCEPTION| is enough, since we don't expect ...
3 years, 9 months ago (2017-03-14 02:05:30 UTC) #56
amaralp
On 2017/03/14 at 02:05:30, yosin wrote: > On 2017/03/14 at 00:45:27, amaralp wrote: > > ...
3 years, 9 months ago (2017-03-15 22:26:59 UTC) #61
yosin_UTC9
lgtm w/ nits Thanks for long iteration! https://codereview.chromium.org/2712603007/diff/240001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2712603007/diff/240001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11463 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11463: }; nit: ...
3 years, 9 months ago (2017-03-16 01:21:35 UTC) #62
amaralp
On 2017/03/16 at 01:21:35, yosin wrote: > lgtm w/ nits > > Thanks for long ...
3 years, 9 months ago (2017-03-16 03:06:45 UTC) #63
aelias_OOO_until_Jul13
Source/web lgtm
3 years, 9 months ago (2017-03-16 03:11:38 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712603007/260001
3 years, 9 months ago (2017-03-16 04:53:54 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/327964)
3 years, 9 months ago (2017-03-16 05:27:40 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712603007/260001
3 years, 9 months ago (2017-03-17 00:03:49 UTC) #71
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 00:11:04 UTC) #74
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/c9178af4426d3a2fc543bd77e929...

Powered by Google App Engine
This is Rietveld 408576698