Lines Matching refs:badGrammarPhraseLocation
356 int TextCheckingHelper::findFirstGrammarDetail(const Vector<GrammarDetail>& grammarDetails, int badGrammarPhraseLocation, int /*badGrammarPhraseLength*/, int startOffset, int endOffset, bool markAll)
367 badGrammarPhraseLocation + detail->location;
378 RefPtr<Range> badGrammarRange = TextIterator::subrange(m_range.get(), badGrammarPhraseLocation - startOffset + detail->location, detail->length);
395 UNUSED_PARAM(badGrammarPhraseLocation);
424 int badGrammarPhraseLocation = -1;
426 m_client->textChecker()->checkGrammarOfString(paragraph.textCharacters() + startOffset, paragraph.textLength() - startOffset, grammarDetails, &badGrammarPhraseLocation, &badGrammarPhraseLength);
429 ASSERT(badGrammarPhraseLocation == -1);
433 ASSERT(badGrammarPhraseLocation >= 0);
434 badGrammarPhraseLocation += startOffset;
438 int badGrammarIndex = findFirstGrammarDetail(grammarDetails, badGrammarPhraseLocation, badGrammarPhraseLength, paragraph.checkingStart(), paragraph.checkingEnd(), markAll);
447 outGrammarPhraseOffset = badGrammarPhraseLocation - paragraph.checkingStart();
448 firstBadGrammarPhrase = paragraph.textSubstring(badGrammarPhraseLocation, badGrammarPhraseLength);
457 startOffset = badGrammarPhraseLocation + badGrammarPhraseLength;