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

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

Issue 2806683002: Don't ever split DocumentMarkers on remove (Closed)
Patch Set: Leave partial markers in place for non-splitting case, preserve endpoints for splitting case 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 48638a5fe3c33075ba0cc7b739d683fd377e2929..fcd83d137d50937eeae69f42828d3ef87f7a53a4 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -752,9 +752,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 wordRange(removeMarkerStart, removeMarkerEnd);
- document->markers().removeMarkers(
- wordRange, DocumentMarker::MisspellingMarkers(),
- DocumentMarkerController::RemovePartiallyOverlappingMarker);
+ document->markers().removeMarkers(wordRange,
+ DocumentMarker::MisspellingMarkers());
}
void SpellChecker::didEndEditingOnTextField(Element* e) {

Powered by Google App Engine
This is Rietveld 408576698