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

Issue 2693863003: [InputEvent] Change |getTargetRanges()| to return current selection by default (Closed)

Created:
3 years, 10 months ago by chongz
Modified:
3 years, 10 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[InputEvent] Change |getTargetRanges()| to return current selection by default For ContentEditable |getTargetRanges()| should: 1. Return corresponding ranges for delete-content/word/line. 2. Return current selection for other types. For <input> and <textarea> |getTargetRanges()| should return empty array. This CL matches Safari Technology Preview. BUG=652429 Review-Url: https://codereview.chromium.org/2693863003 Cr-Commit-Position: refs/heads/master@{#450567} Committed: https://chromium.googlesource.com/chromium/src/+/07359e3b41086b15af2bf433a28f1a4d8b31ff9b

Patch Set 1 #

Total comments: 4

Patch Set 2 : yosin's review: Use const Node&, add null checks #

Messages

Total messages: 20 (14 generated)
chongz
yosin@ PTAL, thanks!
3 years, 10 months ago (2017-02-14 02:25:09 UTC) #8
yosin_UTC9
https://codereview.chromium.org/2693863003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2693863003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode2045 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:2045: const RangeVector* targetRangesForInputEvent(Node* node) { Could you use |const ...
3 years, 10 months ago (2017-02-14 03:43:46 UTC) #9
chongz
yosin@ PTAL again, thanks! https://codereview.chromium.org/2693863003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2693863003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode2045 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:2045: const RangeVector* targetRangesForInputEvent(Node* node) { ...
3 years, 10 months ago (2017-02-14 18:57:51 UTC) #14
yosin_UTC9
lgtm Thanks for quick work!
3 years, 10 months ago (2017-02-15 01:33:16 UTC) #15
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/2693863003/40001
3 years, 10 months ago (2017-02-15 01:34:29 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 05:46:30 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/07359e3b41086b15af2bf433a28f...

Powered by Google App Engine
This is Rietveld 408576698