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

Issue 268993002: For non-editable content, selection editor commands are disabled

Created:
6 years, 7 months ago by b.rout
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Editor commands are disabled on non-editable content. The execution of command relies on following factors. i.e either caret browsing is on/the content is editable provided selection type is caret/the selection type is range. Due to the last factor, keyboard selection works on top of an existing selection (done by mouse) on non-editable content. So, to make the selection possible when there is no existing selection, enabled the command execution by adding new enabled* method with all the above constraint without content editable check. BUG=663

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 13

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -159 lines) Patch
M LayoutTests/editing/execCommand/enabling-and-selection-2-expected.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/editing/execCommand/script-tests/enabling-and-selection-2.js View 1 2 3 4 5 6 7 2 chunks +11 lines, -8 lines 0 comments Download
A LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text.html View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text-expected.txt View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-by-char-and-word-in-readonly-texts-using-keys-with-caret-mode-off.html View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-by-char-and-word-in-readonly-texts-using-keys-with-caret-mode-off-expected.txt View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-down-or-up-the-lines-in-readonly-texts-using-keys-with-caret-mode-off.html View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-down-or-up-the-lines-in-readonly-texts-using-keys-with-caret-mode-off-expected.txt View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-till-begining-or-end-of-line-in-readonly-texts-using-keys-with-caret-mode-off.html View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/select-till-begining-or-end-of-line-in-readonly-texts-using-keys-with-caret-mode-off-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/platform/linux/svg/text/foreignObject-repaint-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/mac/svg/text/foreignObject-repaint-expected.txt View 1 2 3 4 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win-xp/svg/text/foreignObject-repaint-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/svg/text/foreignObject-repaint-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/EditorCommand.cpp View 1 2 3 4 5 6 7 2 chunks +145 lines, -139 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (1 generated)
Inactive
Please wrap your CL description at ~80 chars. This change needs to be covered by ...
6 years, 7 months ago (2014-05-13 19:28:51 UTC) #1
tkent
-abarth, krit, acolwell +yosin, yutak
6 years, 7 months ago (2014-05-13 22:18:09 UTC) #2
b.rout
I was trying to run the layout tests. But, it was giving content_shell crashed for ...
6 years, 7 months ago (2014-05-14 06:59:45 UTC) #3
b.rout
https://codereview.chromium.org/268993002/diff/20001/Source/core/editing/EditorCommand.cpp File Source/core/editing/EditorCommand.cpp (right): https://codereview.chromium.org/268993002/diff/20001/Source/core/editing/EditorCommand.cpp#newcode1441 Source/core/editing/EditorCommand.cpp:1441: { "AlignCenter", { 139, executeJustifyCenter, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateNone, valueNull, ...
6 years, 7 months ago (2014-05-14 07:00:46 UTC) #4
Yuta Kitamura
I'm not sure I understand the issue here. A test is definitely desired for the ...
6 years, 7 months ago (2014-05-20 09:11:33 UTC) #5
b.rout
Thanks for confirming. Currently, I am in the process of writing layout tests. Since I ...
6 years, 7 months ago (2014-05-20 12:21:17 UTC) #6
b.rout
I have uploaded the 3rd patch with the layout tests. But, all these tests I ...
6 years, 7 months ago (2014-05-22 15:10:53 UTC) #7
Yuta Kitamura
I kicked off try jobs. Let me take a close look after these jobs finish.
6 years, 7 months ago (2014-05-23 08:07:36 UTC) #8
Yuta Kitamura
On 2014/05/23 08:07:36, Yuta Kitamura wrote: > I kicked off try jobs. Let me take ...
6 years, 7 months ago (2014-05-26 06:15:16 UTC) #9
b.rout
> Sounds like these tests have failed on the trybots? Now, my content_shell issue is ...
6 years, 7 months ago (2014-05-28 06:18:46 UTC) #10
b.rout
updated the layout tests by checking the behavior in mac.
6 years, 6 months ago (2014-05-29 14:16:45 UTC) #11
b.rout
Could someone please kick off the trybots on the last patch.
6 years, 6 months ago (2014-06-02 09:17:18 UTC) #12
ojan
On 2014/06/02 09:17:18, b.rout wrote: > Could someone please kick off the trybots on the ...
6 years, 6 months ago (2014-06-02 19:28:26 UTC) #13
Yuta Kitamura
Seems like your patch doesn't apply to the ToT. Please rebase your patch and upload ...
6 years, 6 months ago (2014-06-03 06:47:14 UTC) #14
b.rout
It resulted in some apply_issue error. Is it something I need to check? Kindly help ...
6 years, 6 months ago (2014-06-03 06:49:35 UTC) #15
b.rout
On 2014/06/03 06:47:14, Yuta Kitamura wrote: > Seems like your patch doesn't apply to the ...
6 years, 6 months ago (2014-06-03 12:12:43 UTC) #16
Yuta Kitamura
Okay, I've got the idea of what this patch is trying to do. But I ...
6 years, 6 months ago (2014-06-04 08:19:39 UTC) #17
b.rout
https://codereview.chromium.org/268993002/diff/100001/LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text.html File LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text.html (right): https://codereview.chromium.org/268993002/diff/100001/LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text.html#newcode4 LayoutTests/editing/selection/place-caret-on-single-click-within-selected-readonly-text.html:4: <p>This tests caret placement when clicked once on existing ...
6 years, 6 months ago (2014-06-04 12:53:04 UTC) #18
b.rout
How could I see the expected and actual result being generated in trybots? Just noticed ...
6 years, 6 months ago (2014-06-04 13:53:49 UTC) #19
Inactive
On 2014/06/04 13:53:49, b.rout wrote: > How could I see the expected and actual result ...
6 years, 6 months ago (2014-06-04 14:32:39 UTC) #20
b.rout
Hi Yuta, I need some clarification on the suggestions you have given, which I have ...
6 years, 6 months ago (2014-06-10 06:20:14 UTC) #21
Yuta Kitamura
Okay, after having tested locally, I started to think this is a good change, but ...
6 years, 6 months ago (2014-06-11 08:34:22 UTC) #22
yosin_UTC9
On 2014/06/11 08:34:22, Yuta Kitamura wrote: > Okay, after having tested locally, I started to ...
6 years, 6 months ago (2014-06-11 09:16:40 UTC) #23
b.rout
I have implemented review comments given in the previous patch and uploaded another patch. But, ...
6 years, 6 months ago (2014-06-26 09:08:17 UTC) #24
b.rout
Could someone please kickoff the trybots.
6 years, 5 months ago (2014-06-30 06:16:48 UTC) #25
yosin_UTC9
The CQ bit was checked by yosin@chromium.org
6 years, 5 months ago (2014-06-30 06:37:48 UTC) #26
yosin_UTC9
Kicked try bots.
6 years, 5 months ago (2014-06-30 06:38:01 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.rout@samsung.com/268993002/120001
6 years, 5 months ago (2014-06-30 06:38:41 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 06:38:45 UTC) #29
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 5 months ago (2014-06-30 06:38:46 UTC) #30
b.rout
It seems the last attempt to run bots on my patch somehow failed. Could someone ...
6 years, 5 months ago (2014-06-30 10:32:17 UTC) #31
yosin_UTC9
Oops, my brain was damaged. :-< Kick try bots.
6 years, 5 months ago (2014-07-01 00:51:22 UTC) #32
b.rout
I have submitted another patch where I have modified enabling-and-selection-2.txt (which was failing in the ...
6 years, 5 months ago (2014-07-18 14:44:45 UTC) #33
b.rout
Could someone please kickoff the trybots.
6 years, 5 months ago (2014-07-21 05:48:11 UTC) #34
b.rout
6 years, 5 months ago (2014-07-22 06:24:55 UTC) #35
The win_blink_rel failure for patch 8 seems to be unrelated to my change. 
I couldn't figure out why win_blink_compile_rel bot has failed.
mac_blink_rel failure was due to one additional line in the expected result. I
have corrected it in patch 9. 
Could someone please initiate the trybots again.

Powered by Google App Engine
This is Rietveld 408576698