Chromium Code Reviews
DescriptionMake 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 #
Messages
Total messages: 18 (12 generated)
|
||||||||||||||||||||||||||||