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

Issue 2765133002: [WIP] Add DocumentMarkerController::addGrammarMarker() and addSpellingMarker() (Closed)

Created:
3 years, 9 months ago by rlanday
Modified:
3 years, 8 months ago
Reviewers:
*yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, kinuko+watch, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DocumentMarkerController::addGrammarMarker() and addSpellingMarker() Depends on https://codereview.chromium.org/2780313002 (Refactor DocumentMarker) After this CL, we will have a 1-to-1 mapping between DocumentMarkerController's add*Marker() methods and the list of marker types. BUG=707867

Patch Set 1 #

Total comments: 4

Patch Set 2 : Order add*Marker() methods by MarkerType enum order instead of alphabetically #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -19 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 2 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 2 chunks +20 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 2 chunks +12 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 1 chunk +19 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (12 generated)
rlanday
3 years, 9 months ago (2017-03-22 01:47:21 UTC) #5
Xiaocheng
lgtm with nits. https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (left): https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#oldcode103 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:103: void DocumentMarkerController::addCompositionMarker(const Position& start, nit: Shouldn't ...
3 years, 9 months ago (2017-03-22 02:00:29 UTC) #6
yosin_UTC9
https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode63 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:63: void DocumentMarkerController::addCompositionMarker(const Position& start, Please move addCompositionMarker() changes to ...
3 years, 9 months ago (2017-03-22 05:23:46 UTC) #9
rlanday
https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode63 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:63: void DocumentMarkerController::addCompositionMarker(const Position& start, On 2017/03/22 at 05:23:46, yosin_UTC9 ...
3 years, 9 months ago (2017-03-22 17:21:52 UTC) #10
rlanday
On 2017/03/22 at 17:21:52, rlanday wrote: > https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): > > https://codereview.chromium.org/2765133002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode63 ...
3 years, 9 months ago (2017-03-22 20:27:31 UTC) #13
rlanday
Rebased on https://codereview.chromium.org/2780313002 (Refactor DocumentMarker)
3 years, 8 months ago (2017-03-29 23:44:50 UTC) #17
yosin_UTC9
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode71 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:71: DCHECK(type == DocumentMarker::Grammar || type == DocumentMarker::Spelling); nit: Could ...
3 years, 8 months ago (2017-03-30 01:48:57 UTC) #18
rlanday
3 years, 8 months ago (2017-03-31 01:48:42 UTC) #19
On 2017/03/30 at 01:48:57, yosin wrote:
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> File
third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
(right):
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
>
third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:71:
DCHECK(type == DocumentMarker::Grammar || type == DocumentMarker::Spelling);
> nit: Could you add |<< type| for ease of debugging?
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
(right):
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:551:
DCHECK(type == DocumentMarker::Grammar || type == DocumentMarker::Spelling);
> nit: Could you add |<< type| for ease of debugging?
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/testing/Internals.cpp (right):
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/testing/Internals.cpp:924: if (type !=
DocumentMarker::Grammar && type != DocumentMarker::Spelling) {
> Move this check at end of function to utilize early-return style.
> 
>
https://codereview.chromium.org/2765133002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/testing/Internals.cpp:935:
document->markers().addGrammarMarker(range->startPosition(),
> Let's use early return style.

Updated

Powered by Google App Engine
This is Rietveld 408576698