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

Issue 2723913002: Relax text validation in FrameSelection::selectWordAroundPosition (Closed)

Created:
3 years, 9 months ago by yoichio
Modified:
3 years, 9 months ago
Reviewers:
Donn Denman, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Relax text validation in FrameSelection::selectWordAroundPosition This CL fixes text select failure in the cases that |startOfWord| returns VisiblePosition before space like " bar". In that case, selectWordAroundPosition failed. This CL covers the case to check text contains characters rather than separators. The root cause is that though |previousBoundary| in |startOfWord| finds correct position of " |bar", |mostBackWordPosition| of canonicalization moves to "| bar". We can fix it changing function signature from VisiblePosition to Position. However it changes editing code widely. I think that is a kind of refactoring, but that is massive change. I will do it after branch-cut. BUG=658765 TEST=webkit_unit_test --gtest_filter=FrameSelectionTest.SelectWordAroundPosition2, by hand with https://jsfiddle.net/fpt03tv5/1/ Review-Url: https://codereview.chromium.org/2723913002 Cr-Commit-Position: refs/heads/master@{#453860} Committed: https://chromium.googlesource.com/chromium/src/+/8b8542139c3680bd68c6fa07b3df6cfd8706b3c9

Patch Set 1 #

Patch Set 2 : update #

Total comments: 4

Patch Set 3 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 1 chunk +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2723913002/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2723913002/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode1078 third_party/WebKit/Source/core/editing/FrameSelection.cpp:1078: static bool hasWord(const String& text) { ...
3 years, 9 months ago (2017-03-01 03:31:07 UTC) #7
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/2723913002/40001
3 years, 9 months ago (2017-03-01 03:41:58 UTC) #10
yoichio
https://codereview.chromium.org/2723913002/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2723913002/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode1078 third_party/WebKit/Source/core/editing/FrameSelection.cpp:1078: static bool hasWord(const String& text) { On 2017/03/01 03:31:03, ...
3 years, 9 months ago (2017-03-01 03:42:10 UTC) #11
Donn Denman
lgtm
3 years, 9 months ago (2017-03-01 04:03:19 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 06:09:48 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8b8542139c3680bd68c6fa07b3df...

Powered by Google App Engine
This is Rietveld 408576698