Commit 212318b2 authored by jberlin@webkit.org's avatar jberlin@webkit.org
Browse files

Max build fix.

* WebProcess/WebCoreSupport/WebEditorClient.cpp:
(WebKit::WebEditorClient::checkSpellingOfString):
Do not risk an overflow.
(WebKit::WebEditorClient::checkGrammarOfString):
Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2ff922bf
2011-04-07 Jessie Berlin <jberlin@apple.com>
Max build fix.
* WebProcess/WebCoreSupport/WebEditorClient.cpp:
(WebKit::WebEditorClient::checkSpellingOfString):
Do not risk an overflow.
(WebKit::WebEditorClient::checkGrammarOfString):
Ditto.
2011-04-07 Jessie Berlin <jberlin@apple.com>
Reviewed by Brian Weinstein.
......
......@@ -405,7 +405,7 @@ void WebEditorClient::learnWord(const String& word)
void WebEditorClient::checkSpellingOfString(const UChar* text, int length, int* misspellingLocation, int* misspellingLength)
{
int32_t resultLocation = WTF::notFound;
int32_t resultLocation = -1;
int32_t resultLength = 0;
// FIXME: It would be nice if we wouldn't have to copy the text here.
m_page->sendSync(Messages::WebPageProxy::CheckSpellingOfString(String(text, length)),
......@@ -422,7 +422,7 @@ String WebEditorClient::getAutoCorrectSuggestionForMisspelledWord(const String&)
void WebEditorClient::checkGrammarOfString(const UChar* text, int length, Vector<WebCore::GrammarDetail>& grammarDetails, int* badGrammarLocation, int* badGrammarLength)
{
int32_t resultLocation = WTF::notFound;
int32_t resultLocation = -1;
int32_t resultLength = 0;
// FIXME: It would be nice if we wouldn't have to copy the text here.
m_page->sendSync(Messages::WebPageProxy::CheckGrammarOfString(String(text, length)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment