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

Issue 2747333002: Make makeSearchRange() in VisibleSelection to handle BeforeAnchor and AfterAnchor position type (Closed)

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

Description

Make makeSearchRange() in VisibleSelection to handle BeforeAnchor and AfterAnchor position type This patch makes |makeSearchRange()| in |VisibleSelection| to use |Position| container node instead of anchor node to return correct range. Before this patch, |makeSearchRange()| attempts to create a range from after element to after child nodes of element which violates |start <= end| in |EphmeralRange| constructor. BUG=700368 TEST=run_webkit_unit_tests --gtest_filter=VisibleSelectionTest.appendTrailingWhitespaceWithAfterAnchor Review-Url: https://codereview.chromium.org/2747333002 Cr-Commit-Position: refs/heads/master@{#457018} Committed: https://chromium.googlesource.com/chromium/src/+/66986ea643d5a387e1ec0682663617df0cda2b96

Patch Set 1 #

Patch Set 2 : 2017-03-15T12:54:02 #

Total comments: 2

Patch Set 3 : 2017-03-15T14:33:19 Update a comment in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
yosin_UTC9
PTAL All tests in passed in PS#1 which contains unexpected change in "VisibleUnits.cpp", just insert ...
3 years, 9 months ago (2017-03-15 04:03:09 UTC) #7
tkent
lgtm
3 years, 9 months ago (2017-03-15 04:26:14 UTC) #8
yoichio
https://codereview.chromium.org/2747333002/diff/20001/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp File third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp (right): https://codereview.chromium.org/2747333002/diff/20001/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp#newcode80 third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp:80: // Simulate double-clicking "abc" double-clicking on user-select:none should not ...
3 years, 9 months ago (2017-03-15 04:49:29 UTC) #9
yosin_UTC9
Thanks for reviewing! https://codereview.chromium.org/2747333002/diff/20001/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp File third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp (right): https://codereview.chromium.org/2747333002/diff/20001/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp#newcode80 third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp:80: // Simulate double-clicking "abc" On 2017/03/15 ...
3 years, 9 months ago (2017-03-15 05:34:26 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/2747333002/40001
3 years, 9 months ago (2017-03-15 05:34:58 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 07:05:49 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/66986ea643d5a387e1ec06826636...

Powered by Google App Engine
This is Rietveld 408576698