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

Issue 2564763002: Fix calculateCharacterSubrange() when length == 0 (Closed)

Created:
4 years ago by yabinh
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix calculateCharacterSubrange() when length == 0 When length == 0, it should return a collasped range instead of a range with distance == 1. This is pre-CL of https://codereview.chromium.org/2530843003/ BUG=620549 Committed: https://crrev.com/74eab98911047f5d59f89dddaeb412ea6f77718c Cr-Commit-Position: refs/heads/master@{#437500}

Patch Set 1 #

Patch Set 2 : Add a unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
Xiaocheng
Non-owner's lgtm. Thanks for the patch! +tkent for owner's review since yosin is on vacation.
4 years ago (2016-12-09 06:31:38 UTC) #6
tkent
Can you add a unit test?
4 years ago (2016-12-09 06:36:44 UTC) #7
yabinh
On 2016/12/09 06:36:44, tkent wrote: > Can you add a unit test? Where should we ...
4 years ago (2016-12-09 06:39:18 UTC) #8
tkent
> Where should we add the test? Do we need to add a new file ...
4 years ago (2016-12-09 06:39:46 UTC) #9
Xiaocheng
On 2016/12/09 at 06:39:46, tkent wrote: > > Where should we add the test? Do ...
4 years ago (2016-12-09 06:45:23 UTC) #10
yabinh
> There is already editing/iterators/CharacterIteratorTest.cpp. Yes. I didn't notice that. tkent@, PTAL.
4 years ago (2016-12-09 07:40:46 UTC) #15
tkent
lgtm
4 years ago (2016-12-09 07:43:47 UTC) #16
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/2564763002/20001
4 years ago (2016-12-09 07:47:27 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-09 09:16:29 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-09 09:18:05 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/74eab98911047f5d59f89dddaeb412ea6f77718c
Cr-Commit-Position: refs/heads/master@{#437500}

Powered by Google App Engine
This is Rietveld 408576698