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

Issue 2907963002: [Smart Text] Make SurroundingText work for input elements (Closed)

Created:
3 years, 7 months ago by Tima Vaisburd
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9, amaralp
CC:
aelias_OOO_until_Jul13, blink-reviews, chromium-reviews, Donn Denman, Theresa
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Smart Text] Make SurroundingText work for input elements The existing algorithm sets the maximal range of forward and backward character iterators and then advances them. The maximal range used to be the whole document, in this CL we limit the range to be inside the root editable element if such element exists. BUG=721840 Review-Url: https://codereview.chromium.org/2907963002 Cr-Commit-Position: refs/heads/master@{#477572} Committed: https://chromium.googlesource.com/chromium/src/+/48824066704f4c092f5193ae38f5c457d688813e

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 4

Patch Set 3 : Used ContainingShadowRoot() #

Patch Set 4 : Using RootEditableElementOf(Position) #

Patch Set 5 : Restored and updated a comment, improved the test. #

Total comments: 6

Patch Set 6 : Made pointers const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
M third_party/WebKit/Source/core/editing/SurroundingText.cpp View 1 2 3 4 5 3 chunks +13 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp View 1 2 3 4 2 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 38 (28 generated)
Tima Vaisburd
PTAL.
3 years, 6 months ago (2017-05-30 18:42:49 UTC) #6
Tima Vaisburd
3 years, 6 months ago (2017-05-30 20:50:16 UTC) #7
yosin_UTC9
Could you add a test case for this change? Thanks!
3 years, 6 months ago (2017-05-31 02:10:14 UTC) #8
Tima Vaisburd
On 2017/05/31 02:10:14, yosin_UTC9 wrote: > Could you add a test case for this change? ...
3 years, 6 months ago (2017-06-02 23:58:14 UTC) #11
yosin_UTC9
I don't think using tree scope boundaries is not good idea for computing surrounding text. ...
3 years, 6 months ago (2017-06-05 04:59:32 UTC) #14
Tima Vaisburd
https://codereview.chromium.org/2907963002/diff/20001/third_party/WebKit/Source/core/editing/SurroundingText.cpp File third_party/WebKit/Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/2907963002/diff/20001/third_party/WebKit/Source/core/editing/SurroundingText.cpp#newcode70 third_party/WebKit/Source/core/editing/SurroundingText.cpp:70: Node* end_root_container = end_position.ComputeContainerNode(); On 2017/06/05 04:59:32, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-06-06 23:39:09 UTC) #26
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2907963002/diff/100001/third_party/WebKit/Source/core/editing/SurroundingText.cpp File third_party/WebKit/Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/2907963002/diff/100001/third_party/WebKit/Source/core/editing/SurroundingText.cpp#newcode71 third_party/WebKit/Source/core/editing/SurroundingText.cpp:71: Element* root_editable = RootEditableElementOf(start_position); nit: s/Element*/Element* ...
3 years, 6 months ago (2017-06-07 01:00:01 UTC) #29
Tima Vaisburd
https://codereview.chromium.org/2907963002/diff/100001/third_party/WebKit/Source/core/editing/SurroundingText.cpp File third_party/WebKit/Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/2907963002/diff/100001/third_party/WebKit/Source/core/editing/SurroundingText.cpp#newcode71 third_party/WebKit/Source/core/editing/SurroundingText.cpp:71: Element* root_editable = RootEditableElementOf(start_position); On 2017/06/07 01:00:00, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-06-07 04:52:50 UTC) #32
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/2907963002/120001
3 years, 6 months ago (2017-06-07 04:53:11 UTC) #35
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 07:17:03 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/48824066704f4c092f5193ae38f5...

Powered by Google App Engine
This is Rietveld 408576698