| 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 236d2bbfbf26ae20f8d77fdcc561e98f9cee4eb1..71a48a56cc62fbfd9098153f1efa18d809a453f9 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -879,9 +879,10 @@ void SpellChecker::RespondToChangedSelection(
|
| // When spell checking is off, existing markers disappear after the selection
|
| // changes.
|
| if (!IsSpellCheckingEnabled()) {
|
| - GetFrame().GetDocument()->Markers().RemoveMarkers(
|
| + GetFrame().GetDocument()->Markers().RemoveMarkersOfTypes(
|
| DocumentMarker::kSpelling);
|
| - GetFrame().GetDocument()->Markers().RemoveMarkers(DocumentMarker::kGrammar);
|
| + GetFrame().GetDocument()->Markers().RemoveMarkersOfTypes(
|
| + DocumentMarker::kGrammar);
|
| return;
|
| }
|
|
|
| @@ -922,7 +923,7 @@ void SpellChecker::RespondToChangedContents() {
|
| }
|
|
|
| void SpellChecker::RemoveSpellingMarkers() {
|
| - GetFrame().GetDocument()->Markers().RemoveMarkers(
|
| + GetFrame().GetDocument()->Markers().RemoveMarkersOfTypes(
|
| DocumentMarker::MisspellingMarkers());
|
| }
|
|
|
|
|