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

Issue 2771603002: [WIP] Change DocumentMarkerController::add*Marker() methods to take an EphemeralRange (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

Change DocumentMarkerController::add*Marker() methods to take an EphemeralRange DocumentMarkerController refactor part 7 After https://codereview.chromium.org/2765133002 (part 6), DocumentMarkerController has these methods for adding markers: addSpellingMarker() addGrammarMarker() addTextMatchMarker() addCompositionMarker() addTextMatchMarker() takes a reference to an EphemeralRange but the other methods take two Position references. This CL unifies these methods to all take an EphemeralRange. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 BUG=707867

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nits #

Patch Set 3 : Use correct base commit #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -49 lines) Patch
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 2 4 2 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 4 4 chunks +10 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp View 2 4 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (10 generated)
rlanday
Should the DocumentMarker::create*Marker() methods also take an EphemeralRange?
3 years, 9 months ago (2017-03-22 21:11:36 UTC) #5
rlanday
On 2017/03/22 at 21:11:36, rlanday wrote: > Should the DocumentMarker::create*Marker() methods also take an EphemeralRange? ...
3 years, 9 months ago (2017-03-22 21:14:14 UTC) #6
Xiaocheng
lgtm https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode551 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:551: if (type == DocumentMarker::Grammar) { nit: no need ...
3 years, 9 months ago (2017-03-22 21:21:01 UTC) #7
rlanday
3 years, 8 months ago (2017-03-31 01:58:04 UTC) #13
On 2017/03/22 at 21:21:01, xiaochengh wrote:
> lgtm
> 
>
https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
(right):
> 
>
https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:551: if
(type == DocumentMarker::Grammar) {
> nit: no need to have braces now.
> 
>
https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/testing/Internals.cpp (right):
> 
>
https://codereview.chromium.org/2771603002/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/testing/Internals.cpp:977: if (type ==
DocumentMarker::Grammar) {
> nit: no need to have braces now.

Updated

Powered by Google App Engine
This is Rietveld 408576698