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

Issue 1329253002: WIP: prefer using EphemeralRange for SpellChecker. (Closed)

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

Description

WIP: prefer using EphemeralRange for SpellChecker. R= BUG=

Patch Set 1 #

Patch Set 2 : non-Oilpan compile fix #

Patch Set 3 : introduce Range::dispose() #

Total comments: 17

Patch Set 4 : use ScopedDisposal<T> #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -65 lines) Patch
M Source/core/dom/Range.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/editing/InputMethodController.cpp View 1 chunk +3 lines, -3 lines 1 comment Download
M Source/core/editing/VisibleSelection.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 chunk +9 lines, -0 lines 3 comments Download
M Source/core/editing/spellcheck/SpellCheckRequester.cpp View 1 2 1 chunk +6 lines, -0 lines 1 comment Download
M Source/core/editing/spellcheck/SpellChecker.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/spellcheck/SpellChecker.cpp View 5 chunks +12 lines, -13 lines 4 comments Download
M Source/core/editing/spellcheck/TextCheckingHelper.h View 4 chunks +12 lines, -9 lines 0 comments Download
M Source/core/editing/spellcheck/TextCheckingHelper.cpp View 1 2 5 chunks +49 lines, -37 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 chunk +3 lines, -2 lines 1 comment Download

Messages

Total messages: 19 (3 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1329253002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1329253002/20001
5 years, 3 months ago (2015-09-09 14:51:18 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-09 15:58:09 UTC) #4
haraken
LGTM if yosin is fine with this. Let's add more rationale of this change to ...
5 years, 3 months ago (2015-09-09 23:48:11 UTC) #6
yosin_UTC9
Could you split this patch into three? 1. Introduce firstEphemeralRange() and replace usages 2. Change ...
5 years, 3 months ago (2015-09-10 01:58:40 UTC) #7
yosin_UTC9
We also want to rename |VisibleSelection::toNormalizedEphemeralRange()| to |toNormalizedRange()|. https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/VisibleSelection.cpp File Source/core/editing/VisibleSelection.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/VisibleSelection.cpp#newcode226 Source/core/editing/VisibleSelection.cpp:226: if ...
5 years, 3 months ago (2015-09-10 02:24:02 UTC) #8
sof
ok, thanks. i'll spend a day plus getting this into the desired shape.
5 years, 3 months ago (2015-09-10 05:09:57 UTC) #9
sof
https://codereview.chromium.org/1329253002/diff/40001/Source/core/dom/Range.h File Source/core/dom/Range.h (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/dom/Range.h#newcode67 Source/core/dom/Range.h:67: void dispose(); On 2015/09/10 01:58:39, Yosi_UTC9 wrote: > I'm ...
5 years, 3 months ago (2015-09-10 05:59:02 UTC) #10
sof
https://codereview.chromium.org/1329253002/diff/40001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/web/WebLocalFrameImpl.cpp#newcode270 Source/web/WebLocalFrameImpl.cpp:270: range->dispose(); On 2015/09/10 01:58:39, Yosi_UTC9 wrote: > Please introduce ...
5 years, 3 months ago (2015-09-10 06:07:49 UTC) #11
sof
https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp File Source/core/editing/spellcheck/TextCheckingHelper.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp#newcode184 Source/core/editing/spellcheck/TextCheckingHelper.cpp:184: RefPtrWillBeRawPtr<Range> range = createRange(offsetAsRange()); On 2015/09/10 01:58:39, Yosi_UTC9 wrote: ...
5 years, 3 months ago (2015-09-10 06:12:11 UTC) #12
yosin_UTC9
Still WIP? https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp File Source/core/editing/spellcheck/TextCheckingHelper.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp#newcode184 Source/core/editing/spellcheck/TextCheckingHelper.cpp:184: RefPtrWillBeRawPtr<Range> range = createRange(offsetAsRange()); On 2015/09/10 06:12:10, ...
5 years, 3 months ago (2015-09-10 06:37:04 UTC) #13
sof
https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp File Source/core/editing/spellcheck/TextCheckingHelper.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp#newcode184 Source/core/editing/spellcheck/TextCheckingHelper.cpp:184: RefPtrWillBeRawPtr<Range> range = createRange(offsetAsRange()); On 2015/09/10 06:37:03, Yosi_UTC9 wrote: ...
5 years, 3 months ago (2015-09-10 06:42:27 UTC) #14
yosin_UTC9
https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp File Source/core/editing/spellcheck/TextCheckingHelper.cpp (right): https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp#newcode184 Source/core/editing/spellcheck/TextCheckingHelper.cpp:184: RefPtrWillBeRawPtr<Range> range = createRange(offsetAsRange()); On 2015/09/10 06:42:27, sof wrote: ...
5 years, 3 months ago (2015-09-10 07:01:46 UTC) #15
yosin_UTC9
On 2015/09/10 07:01:46, Yosi_UTC9 wrote: > https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp > File Source/core/editing/spellcheck/TextCheckingHelper.cpp (right): > > https://codereview.chromium.org/1329253002/diff/40001/Source/core/editing/spellcheck/TextCheckingHelper.cpp#newcode184 > ...
5 years, 3 months ago (2015-09-10 07:03:32 UTC) #16
sof
Just sorting through the issues raised here so as to know what to carry over ...
5 years, 3 months ago (2015-09-10 07:16:27 UTC) #17
sof
The contents of this WIP has been split into: - https://codereview.chromium.org/1332823002/ (firstEphemeralRangeOf()) - https://codereview.chromium.org/1331893002/ (use ...
5 years, 3 months ago (2015-09-10 12:51:35 UTC) #18
sof
5 years, 3 months ago (2015-09-11 13:46:19 UTC) #19
Closing this initial bundle of changes; thanks for the reviews & suggested
improvements :)

Powered by Google App Engine
This is Rietveld 408576698