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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2836563002: [DMC #1.913] Rename DocumentMarkerController::RemoveMarkers() to RemoveMarkersOfTypes() (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698