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

Issue 2277903003: Fix selectionDirection after setting value of TEXTAREA/INPUT. (Closed)

Created:
4 years, 3 months ago by tkent
Modified:
4 years, 3 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix selectionDirection after setting value of TEXTAREA/INPUT. slectionDirection wrongly returned "none" on non-Mac platforms in such case. This CL - makes sure that selection operations are done by setSelectionRange(). - moves direction normalization code from setSelectionRangeForBinding() to setSelectionRange(). Also, this makes cacheSelection() private. Only HTMLTextFormControlElement calls it. BUG=640861 Committed: https://crrev.com/e31411764112e03a39ff3683a4aa8367e950e8d9 Cr-Commit-Position: refs/heads/master@{#414451}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add DCHECK_LE, update a cooment #

Patch Set 3 : Revert DCHECK_LE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -32 lines) Patch
M third_party/WebKit/LayoutTests/fast/forms/selection-direction.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/selection-direction-expected.txt View 6 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp View 4 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
tkent
yosin@, would you review this please?
4 years, 3 months ago (2016-08-25 08:01:58 UTC) #4
yosin_UTC9
lgtm w/ small nit https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h File third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h (right): https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h#newcode137 third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h:137: m_cachedSelectionStart = start; nit: Could ...
4 years, 3 months ago (2016-08-25 08:10:22 UTC) #5
tkent
https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h File third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h (right): https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h#newcode137 third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h:137: m_cachedSelectionStart = start; On 2016/08/25 at 08:10:22, Yosi_UTC9 wrote: ...
4 years, 3 months ago (2016-08-25 09:12:40 UTC) #8
tkent
https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h File third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h (right): https://codereview.chromium.org/2277903003/diff/1/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h#newcode137 third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h:137: m_cachedSelectionStart = start; On 2016/08/25 at 09:12:40, tkent wrote: ...
4 years, 3 months ago (2016-08-25 10:21:03 UTC) #12
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/2277903003/40001
4 years, 3 months ago (2016-08-25 11:39:13 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281015)
4 years, 3 months ago (2016-08-25 13:55:03 UTC) #19
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/2277903003/40001
4 years, 3 months ago (2016-08-25 14:39:22 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-25 16:22:30 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 16:23:46 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e31411764112e03a39ff3683a4aa8367e950e8d9
Cr-Commit-Position: refs/heads/master@{#414451}

Powered by Google App Engine
This is Rietveld 408576698