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

Issue 2909923005: Expand TextCheckingParagraph::OffsetTo() into SelectionController::MarkAndReplaceFor() (Closed)

Created:
3 years, 6 months ago by yosin_UTC9
Modified:
3 years, 6 months ago
Reviewers:
yoichio, Xiaocheng
CC:
Xiaocheng, blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, hiroshige+script_chromium.org, kochi+script_chromium.org, kouhei+script_chromium.org, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand TextCheckingParagraph::OffsetTo() into SelectionController::MarkAndReplaceFor() This patch expands |TextCheckingParagraph::OffsetTo()| into |SelectionController::MarkAndReplaceFor()| with optimizations, see below, because it is called once for improving code health. Since |TextCheckingParagraph| object |paragraph| holds single range |checking_range|, we can hold |TextCheckingParagraph::OffsetAsRange().StartPosition()| to |checking_range.StartPosition()|. When |caret_position < paragraph_start|, we don't need to consider it, because of caret is placed before checked range. This patch is a preparation of patch[1]. [1] http://crrev.com/2912053002: Call TextIterator constructor with proper range BUG=727537 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2909923005 Cr-Commit-Position: refs/heads/master@{#475718} Committed: https://chromium.googlesource.com/chromium/src/+/9a241f0157e83c8defd3ee25b06232f6688bf86b

Patch Set 1 : 2017-05-30T18:40:32 #

Patch Set 2 : 2017-05-30T18:54:14 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -8 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingParagraph.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (19 generated)
yosin_UTC9
PTAL Note: patch[1] is succeeded.
3 years, 6 months ago (2017-05-30 10:05:26 UTC) #14
Xiaocheng
lgtm
3 years, 6 months ago (2017-05-30 21:15:24 UTC) #18
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/2909923005/40001
3 years, 6 months ago (2017-05-31 01:06:36 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 01:16:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9a241f0157e83c8defd3ee25b062...

Powered by Google App Engine
This is Rietveld 408576698