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

Issue 2928073002: Reland: Made surrounding text work for last word in a document (Closed)

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

Description

Reland: Made surrounding text work for last word in a document The surrounding text algorithm did not proceed if the range between the end of selection and the end of document had zero length. Current CL removes this restriction. The reason for the old behavior seems to be that selection within control elements should not produce surrounding text. Checked for HTMLFormControlElement::EnclosingFormControlElement() explicitly. BUG=724215 Review-Url: https://codereview.chromium.org/2928073002 Cr-Original-Commit-Position: refs/heads/master@{#482719} Committed: https://chromium.googlesource.com/chromium/src/+/445e7e4dc4bb49245a40b102bf3b3906dfcd6661 Review-Url: https://codereview.chromium.org/2928073002 Cr-Commit-Position: refs/heads/master@{#482881} Committed: https://chromium.googlesource.com/chromium/src/+/72820cdb1298dc9e5c6519b1e62048345cde7644

Patch Set 1 #

Patch Set 2 : Fixing LayoutTests #

Patch Set 3 : Rebased #

Patch Set 4 : An attempt to fix layout test #

Patch Set 5 : Changed expectations #

Patch Set 6 : Do not create surrounding text for control elements, updated layout tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -19 lines) Patch
M third_party/WebKit/LayoutTests/editing/surrounding-text/surrounding-text.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/surrounding-text/surrounding-text-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SurroundingText.cpp View 1 2 3 4 5 3 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SurroundingTextTest.cpp View 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 53 (45 generated)
Tima Vaisburd
We do not retrieve surrounding text if the forward_range has zero length, this looks like ...
3 years, 6 months ago (2017-06-09 01:35:57 UTC) #5
yosin_UTC9
lgtm
3 years, 6 months ago (2017-06-09 02:28:01 UTC) #8
Tima Vaisburd
On 2017/06/09 02:28:01, yosin_UTC9 wrote: > lgtm Hm, not sure what is different on mac ...
3 years, 6 months ago (2017-06-12 17:59:43 UTC) #21
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/2928073002/80001
3 years, 5 months ago (2017-06-27 19:00:59 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/445e7e4dc4bb49245a40b102bf3b3906dfcd6661
3 years, 5 months ago (2017-06-27 20:02:17 UTC) #35
benwells
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2955973007/ by benwells@chromium.org. ...
3 years, 5 months ago (2017-06-28 01:16:15 UTC) #36
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/2928073002/100001
3 years, 5 months ago (2017-06-28 04:34:33 UTC) #50
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 04:38:26 UTC) #53
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/72820cdb1298dc9e5c6519b1e620...

Powered by Google App Engine
This is Rietveld 408576698