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

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

Issue 2289593007: Cleanup call relationship in SpellChecker (Closed)
Patch Set: Cleanup call relationship in SpellChecker Created 4 years, 4 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/SpellChecker.h ('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 112a6460002778a9e03b04878ecc6253e14c2cb9..66c4bf637676369e6edc72baad721522010bd2d7 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -308,11 +308,16 @@ void SpellChecker::showSpellingGuessPanel()
spellCheckerClient().showSpellingUI(true);
}
-void SpellChecker::clearMisspellingsAndBadGrammar(const VisibleSelection &movingSelection)
+void SpellChecker::clearMisspellingsAndBadGrammarForMovingParagraphs(const VisibleSelection& movingSelection)
{
removeMarkers(movingSelection, DocumentMarker::MisspellingMarkers());
}
+void SpellChecker::markMisspellingsAndBadGrammarForMovingParagraphs(const VisibleSelection& movingSelection)
+{
+ markMisspellingsAndBadGrammar(movingSelection);
+}
+
void SpellChecker::markMisspellingsAndBadGrammar(const VisibleSelection& selection)
{
if (!isSpellCheckingEnabled() || !isSpellCheckingEnabledFor(selection))
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698