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

Unified Diff: Source/core/editing/SpellChecker.cpp

Issue 350993002: Remove an unused argument from SpellChecker::spellCheckOldSelection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « Source/core/editing/SpellChecker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SpellChecker.cpp
diff --git a/Source/core/editing/SpellChecker.cpp b/Source/core/editing/SpellChecker.cpp
index aa83b4c9a719c9af9a4542cff64673cfdc243276..85bfe526972a17be6a6ef6f084b183bf20172eef 100644
--- a/Source/core/editing/SpellChecker.cpp
+++ b/Source/core/editing/SpellChecker.cpp
@@ -753,7 +753,7 @@ void SpellChecker::respondToChangedSelection(const VisibleSelection& oldSelectio
&& oldSelection.isContentEditable()
&& oldSelection.start().inDocument()
&& !isSelectionInTextField(oldSelection)) {
- spellCheckOldSelection(oldSelection, newAdjacentWords, newSelectedSentence);
+ spellCheckOldSelection(oldSelection, newAdjacentWords);
}
if (textChecker().shouldEraseMarkersAfterChangeSelection(TextCheckingTypeSpelling)) {
@@ -789,10 +789,10 @@ void SpellChecker::spellCheckAfterBlur()
}
VisibleSelection empty;
- spellCheckOldSelection(m_frame.selection().selection(), empty, empty);
+ spellCheckOldSelection(m_frame.selection().selection(), empty);
}
-void SpellChecker::spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords, const VisibleSelection& newSelectedSentence)
+void SpellChecker::spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords)
{
VisiblePosition oldStart(oldSelection.visibleStart());
VisibleSelection oldAdjacentWords = VisibleSelection(startOfWord(oldStart, LeftWordIfOnBoundary), endOfWord(oldStart, RightWordIfOnBoundary));
« no previous file with comments | « Source/core/editing/SpellChecker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698