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

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

Issue 2763893002: [WIP] Clean up DocumentMarkerController API (Closed)
Patch Set: Move CompositionMarkerList::at() into previous CL Created 3 years, 9 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 e26740a836c32da813eb5152f1c4237bccd5ca4b..496441838d9f5531352959049d2f37caf321c84c 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -910,10 +910,8 @@ void SpellChecker::removeSpellingMarkers() {
void SpellChecker::removeSpellingMarkersUnderWords(
const Vector<String>& words) {
- MarkerRemoverPredicate removerPredicate(words);
-
DocumentMarkerController& markerController = frame().document()->markers();
- markerController.removeMarkers(removerPredicate);
+ markerController.removeSpellingMarkersForWords(words);
markerController.repaintMarkers();
}

Powered by Google App Engine
This is Rietveld 408576698