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

Issue 1620653002: Pass Only the Pasted Text to Spellchecker (Closed)

Created:
4 years, 11 months ago by Xiaocheng
Modified:
4 years, 11 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

Pass Only the Pasted Text to Spellchecker Without this patch, the root editable element is passed to spellchecker after pasting, which results in a long running time if we paste some short text into an editor that already has a large amount of text. This patch passes the range of the pasted text only, which significantly reduces the time spent on spellchecking in the above scenario. BUG=109587 Committed: https://crrev.com/c3cb0dce8a7f1a4a72b82b76945a7e709f93d7e4 Cr-Commit-Position: refs/heads/master@{#370946}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

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

Messages

Total messages: 10 (4 generated)
Xiaocheng
PTAL.
4 years, 11 months ago (2016-01-22 08:49:23 UTC) #2
yosin_UTC9
lgtm w/ small nits. Please add: TEST=n/a; this changes doesn't behavior. https://codereview.chromium.org/1620653002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): ...
4 years, 11 months ago (2016-01-22 09:56:55 UTC) #3
Xiaocheng
Committing with nits fixed. https://codereview.chromium.org/1620653002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/1620653002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp#newcode518 third_party/WebKit/Source/core/editing/Editor.cpp:518: if (insertedRange.isNotNull()) On 2016/01/22 at ...
4 years, 11 months ago (2016-01-22 10:24:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1620653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1620653002/20001
4 years, 11 months ago (2016-01-22 10:25:41 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-22 11:49:13 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 11:50:12 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c3cb0dce8a7f1a4a72b82b76945a7e709f93d7e4
Cr-Commit-Position: refs/heads/master@{#370946}

Powered by Google App Engine
This is Rietveld 408576698