| 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 d08c0004b666e728eba26422a4dd7857bd06bea9..250bb769eedab603e3e5e2cd137d38d9a3530c7f 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -305,8 +305,7 @@ void SpellChecker::AdvanceToNextMisspelling(bool start_before_selection) {
|
| .Build());
|
| GetFrame().Selection().RevealSelection();
|
| GetSpellCheckerClient().UpdateSpellingUIWithMisspelledWord(misspelled_word);
|
| - GetFrame().GetDocument()->Markers().AddSpellingMarker(
|
| - misspelling_range.StartPosition(), misspelling_range.EndPosition());
|
| + GetFrame().GetDocument()->Markers().AddSpellingMarker(misspelling_range);
|
| }
|
| }
|
|
|
| @@ -557,15 +556,12 @@ static void AddMarker(Document* document,
|
| }
|
|
|
| if (type == DocumentMarker::kSpelling) {
|
| - document->Markers().AddSpellingMarker(range_to_mark.StartPosition(),
|
| - range_to_mark.EndPosition(),
|
| - description);
|
| + document->Markers().AddSpellingMarker(range_to_mark, description);
|
| return;
|
| }
|
|
|
| DCHECK_EQ(type, DocumentMarker::kGrammar);
|
| - document->Markers().AddGrammarMarker(
|
| - range_to_mark.StartPosition(), range_to_mark.EndPosition(), description);
|
| + document->Markers().AddGrammarMarker(range_to_mark, description);
|
| }
|
|
|
| void SpellChecker::MarkAndReplaceFor(
|
|
|