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

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

Issue 2806683002: Don't ever split DocumentMarkers on remove (Closed)
Patch Set: Rebase (no manual changes) 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/HotModeSpellCheckRequester.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 626cb72b7aca4e268e89a3324fff73eabad0aeb0..6b5ab7f16044f1c8e84a1b261e6760e4536a7b87 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -763,9 +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(),
- DocumentMarkerController::kRemovePartiallyOverlappingMarker);
+ document->Markers().RemoveMarkers(word_range,
+ DocumentMarker::MisspellingMarkers());
}
void SpellChecker::DidEndEditingOnTextField(Element* e) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698