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

Issue 2271603002: Force expandToParagraphBoundary to return a valid EphemeralRange (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch that make expandToParagraphBoundary() compare the paragraph boundaries found with the input range before returning, so that the returned range is always a super-range of the input range, and hence, a valid EphemeralRange. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch Committed: https://crrev.com/8d1974aecc77d407a9ee89d2434f0079b4cc1e40 Cr-Commit-Position: refs/heads/master@{#413942}

Patch Set 1 #

Patch Set 2 : Use position comparison #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp View 1 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
Xiaocheng
PTAL.
4 years, 4 months ago (2016-08-24 01:54:16 UTC) #13
yosin_UTC9
lgtm Great! Since most of case we can find sentence boundary correctly. On unusual HTML ...
4 years, 4 months ago (2016-08-24 02:02:04 UTC) #14
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/2271603002/20001
4 years, 4 months ago (2016-08-24 02:10:56 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-24 02:16:09 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 02:18:22 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8d1974aecc77d407a9ee89d2434f0079b4cc1e40
Cr-Commit-Position: refs/heads/master@{#413942}

Powered by Google App Engine
This is Rietveld 408576698