| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 0439b7ca87ecea7c313fdd45b6764b05849c8ba2..e68a6e20f988c436a186190c6ff4a5cc7b6c2fab 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -302,8 +302,7 @@ void SpellChecker::advanceToNextMisspelling(bool startBeforeSelection) {
|
| .build());
|
| frame().selection().revealSelection();
|
| spellCheckerClient().updateSpellingUIWithMisspelledWord(misspelledWord);
|
| - frame().document()->markers().addSpellingMarker(
|
| - misspellingRange.startPosition(), misspellingRange.endPosition());
|
| + frame().document()->markers().addSpellingMarker(misspellingRange);
|
| }
|
| }
|
|
|
| @@ -543,13 +542,10 @@ static void addMarker(Document* document,
|
|
|
| DCHECK(type == DocumentMarker::Grammar || type == DocumentMarker::Spelling)
|
| << type;
|
| - if (type == DocumentMarker::Grammar) {
|
| - document->markers().addGrammarMarker(
|
| - rangeToMark.startPosition(), rangeToMark.endPosition(), description);
|
| - } else {
|
| - document->markers().addSpellingMarker(
|
| - rangeToMark.startPosition(), rangeToMark.endPosition(), description);
|
| - }
|
| + if (type == DocumentMarker::Grammar)
|
| + document->markers().addGrammarMarker(rangeToMark, description);
|
| + else
|
| + document->markers().addSpellingMarker(rangeToMark, description);
|
| }
|
|
|
| void SpellChecker::markAndReplaceFor(
|
|
|