| Index: Source/core/editing/TextCheckingHelper.cpp
|
| diff --git a/Source/core/editing/TextCheckingHelper.cpp b/Source/core/editing/TextCheckingHelper.cpp
|
| index ff2197e1bae3a141dbe764193eaa48a6d4c9cd65..e96620aeb4cb03ab084ef5e2dae0b53e3e016aa7 100644
|
| --- a/Source/core/editing/TextCheckingHelper.cpp
|
| +++ b/Source/core/editing/TextCheckingHelper.cpp
|
| @@ -271,7 +271,7 @@ String TextCheckingHelper::findFirstMisspelling(int& firstMisspellingOffset, boo
|
| }
|
|
|
| // Store marker for misspelled word.
|
| - misspellingRange->startContainer()->document().markers()->addMarker(misspellingRange.get(), DocumentMarker::Spelling);
|
| + misspellingRange->startContainer()->document().markers().addMarker(misspellingRange.get(), DocumentMarker::Spelling);
|
|
|
| // Bail out if we're marking only the first misspelling, and not all instances.
|
| if (!markAll)
|
| @@ -432,7 +432,7 @@ int TextCheckingHelper::findFirstGrammarDetail(const Vector<GrammarDetail>& gram
|
|
|
| if (markAll) {
|
| RefPtr<Range> badGrammarRange = TextIterator::subrange(m_range.get(), badGrammarPhraseLocation - startOffset + detail->location, detail->length);
|
| - badGrammarRange->startContainer()->document().markers()->addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription);
|
| + badGrammarRange->startContainer()->document().markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription);
|
| }
|
|
|
| // Remember this detail only if it's earlier than our current candidate (the details aren't in a guaranteed order)
|
|
|