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

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

Issue 2830213002: [DMC #1.911] Rename DocumentMarkerController::RemoveMarkers() to RemoveMarkersInRange() (Closed)
Patch Set: Remove dependency 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2679d87ac25961aa1becf5119a21c2ec262cad1b..d2ae2abb08d67c1e2e59ed9a85f4eae331f700e7 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -763,8 +763,8 @@ void SpellChecker::UpdateMarkersForWordsAffectedByEditing(
// as well. So we need to get the continous range of of marker that contains
// the word in question, and remove marker on that whole range.
const EphemeralRange word_range(remove_marker_start, remove_marker_end);
- document->Markers().RemoveMarkers(word_range,
- DocumentMarker::MisspellingMarkers());
+ document->Markers().RemoveMarkersInRange(
+ word_range, DocumentMarker::MisspellingMarkers());
}
void SpellChecker::DidEndEditingOnTextField(Element* e) {
@@ -1032,7 +1032,7 @@ void SpellChecker::RemoveMarkers(const EphemeralRange& range,
if (range.IsNull())
return;
- GetFrame().GetDocument()->Markers().RemoveMarkers(range, marker_types);
+ GetFrame().GetDocument()->Markers().RemoveMarkersInRange(range, marker_types);
}
// TODO(xiaochengh): This function is only used by unit tests. We should move it
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698