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

Unified Diff: third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 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/web/SpellCheckerClientImpl.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/web/SpellCheckerClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp b/third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp
index 25d322f83e4d6a448d326d0e2c6b2614c608bb51..08d03ab5591616f469da10a8b2b42fa17518dd61 100644
--- a/third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp
+++ b/third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp
@@ -137,14 +137,14 @@ void SpellCheckerClientImpl::checkSpellingOfString(const String& text, int* miss
*misspellingLength = spellLength;
}
-void SpellCheckerClientImpl::requestCheckingOfString(RawPtr<TextCheckingRequest> request)
+void SpellCheckerClientImpl::requestCheckingOfString(TextCheckingRequest* request)
{
- if (m_webView->spellCheckClient()) {
- const String& text = request->data().text();
- const Vector<uint32_t>& markers = request->data().markers();
- const Vector<unsigned>& markerOffsets = request->data().offsets();
- m_webView->spellCheckClient()->requestCheckingOfText(text, markers, markerOffsets, new WebTextCheckingCompletionImpl(request));
- }
+ if (!m_webView->spellCheckClient())
+ return;
+ const String& text = request->data().text();
+ const Vector<uint32_t>& markers = request->data().markers();
+ const Vector<unsigned>& markerOffsets = request->data().offsets();
+ m_webView->spellCheckClient()->requestCheckingOfText(text, markers, markerOffsets, new WebTextCheckingCompletionImpl(request));
}
void SpellCheckerClientImpl::checkGrammarOfString(const String& text, WTF::Vector<GrammarDetail>& details, int* badGrammarLocation, int* badGrammarLength)
« no previous file with comments | « third_party/WebKit/Source/web/SpellCheckerClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698