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

Issue 20572005: Allow selection to skip over contenteditable (Closed)

Created:
7 years, 4 months ago by dmazzoni
Modified:
7 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Allow selection to skip over contenteditable BUG=264539 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157492

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 24

Patch Set 3 : Add new test, address feedback #

Total comments: 3

Patch Set 4 : Add assert not reached after switch #

Patch Set 5 : Update test expectations #

Patch Set 6 : Work around minor platform differences in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -18 lines) Patch
A LayoutTests/editing/selection/skip-over-contenteditable.html View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/skip-over-contenteditable-expected.txt View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/skip-over-uneditable-in-contenteditable.html View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/skip-over-uneditable-in-contenteditable-expected.txt View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/stay-in-textarea.html View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/stay-in-textarea-expected.txt View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M Source/core/dom/Position.cpp View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 3 4 5 6 chunks +8 lines, -8 lines 0 comments Download
M Source/core/editing/VisiblePosition.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/editing/VisiblePosition.cpp View 1 2 3 4 5 3 chunks +56 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dmazzoni
7 years, 4 months ago (2013-07-26 02:27:46 UTC) #1
dmazzoni
Ping? I know this code can be gnarly, just wondering if one of you has ...
7 years, 4 months ago (2013-07-30 17:00:18 UTC) #2
kenjibaheux
On 2013/07/30 17:00:18, Dominic Mazzoni wrote: > Ping? I know this code can be gnarly, ...
7 years, 3 months ago (2013-08-30 20:49:20 UTC) #3
yosin_UTC9
How about change Position::isCandidate() to check caret browsing mode and returns true as editable? If ...
7 years, 3 months ago (2013-08-31 01:00:47 UTC) #4
dmazzoni
Thanks. The cursor doesn't leave a text field now because the text field itself enforces ...
7 years, 3 months ago (2013-09-04 07:06:58 UTC) #5
dmazzoni
https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html File LayoutTests/editing/selection/skip-over-contenteditable.html (right): https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html#newcode14 LayoutTests/editing/selection/skip-over-contenteditable.html:14: window.before = document.getElementById("before"); On 2013/08/31 01:00:47, Yoshifumi Inoue wrote: ...
7 years, 3 months ago (2013-09-05 07:57:29 UTC) #6
yosin_UTC9
https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html File LayoutTests/editing/selection/skip-over-contenteditable.html (right): https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html#newcode14 LayoutTests/editing/selection/skip-over-contenteditable.html:14: window.before = document.getElementById("before"); On 2013/09/05 07:57:29, Dominic Mazzoni wrote: ...
7 years, 3 months ago (2013-09-05 08:42:47 UTC) #7
dmazzoni
https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html File LayoutTests/editing/selection/skip-over-contenteditable.html (right): https://codereview.chromium.org/20572005/diff/5001/LayoutTests/editing/selection/skip-over-contenteditable.html#newcode14 LayoutTests/editing/selection/skip-over-contenteditable.html:14: window.before = document.getElementById("before"); On 2013/09/05 08:42:48, Yoshifumi Inoue wrote: ...
7 years, 3 months ago (2013-09-05 17:17:21 UTC) #8
yosin_UTC9
internals.youngestShadowRoot(...).getSelection() Rocks! https://codereview.chromium.org/20572005/diff/17001/Source/core/editing/VisiblePosition.cpp File Source/core/editing/VisiblePosition.cpp (right): https://codereview.chromium.org/20572005/diff/17001/Source/core/editing/VisiblePosition.cpp#newcode82 Source/core/editing/VisiblePosition.cpp:82: } Please fix compilation error, visibleposition.cpp(82) : ...
7 years, 3 months ago (2013-09-06 01:31:14 UTC) #9
dmazzoni
https://codereview.chromium.org/20572005/diff/17001/Source/core/editing/VisiblePosition.cpp File Source/core/editing/VisiblePosition.cpp (right): https://codereview.chromium.org/20572005/diff/17001/Source/core/editing/VisiblePosition.cpp#newcode112 Source/core/editing/VisiblePosition.cpp:112: } On 2013/09/06 01:31:15, Yoshifumi Inoue wrote: > Please ...
7 years, 3 months ago (2013-09-06 07:29:25 UTC) #10
dmazzoni
Ping, how does this look now?
7 years, 3 months ago (2013-09-09 22:09:53 UTC) #11
eseidel
lgtm Looks reasonable to me. I'm very glad to see yosin reviewing since he's by ...
7 years, 3 months ago (2013-09-09 22:12:33 UTC) #12
dmazzoni
Thanks! @yosin, any additional thoughts?
7 years, 3 months ago (2013-09-09 23:07:16 UTC) #13
yosin_UTC9
On 2013/09/09 23:07:16, Dominic Mazzoni wrote: > Thanks! @yosin, any additional thoughts? ACK Although, term ...
7 years, 3 months ago (2013-09-10 01:13:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/20572005/29001
7 years, 3 months ago (2013-09-10 02:27:40 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 04:09:06 UTC) #16
Message was sent while issue was closed.
Change committed as 157492

Powered by Google App Engine
This is Rietveld 408576698