Lines Matching refs:detail

292                         // it begins but before the first detail in it, but we can stop if we find a second grammar result.
296 const GrammarDetail* detail = &result->details[j];
297 ASSERT(detail->length > 0 && detail->location >= 0);
298 if (result->location + detail->location >= currentStartOffset && result->location + detail->location + detail->length <= currentEndOffset && (!foundGrammar || result->location + detail->location < grammarDetailLocation)) {
300 grammarDetailLocation = result->location + detail->location;
359 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
360 // Optionally add a DocumentMarker for each detail in the range.
364 const GrammarDetail* detail = &grammarDetails[i];
365 ASSERT(detail->length > 0 && detail->location >= 0);
367 int detailStartOffsetInParagraph = badGrammarPhraseLocation + detail->location;
369 // Skip this detail if it starts before the original search range
373 // Skip this detail if it starts after the original search range
378 RefPtr<Range> badGrammarRange = TextIterator::subrange(m_range.get(), badGrammarPhraseLocation - startOffset + detail->location, detail->length);
380 badGrammarRange->startContainer(ec)->document()->markers()->addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription);
384 // Remember this detail only if it's earlier than our current candidate (the details aren't in a guaranteed order)
385 if (earliestDetailIndex < 0 || earliestDetailLocationSoFar > detail->location) {
387 earliestDetailLocationSoFar = detail->location;
437 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
444 // If we found a detail in range, then we have found the first bad phrase (unless we found one earlier but
474 // Returns true only if the passed range exactly corresponds to a bad grammar detail range. This is analogous
493 // Bad grammar, but start of detail (e.g. ungrammatical word) doesn't match start of range
549 const GrammarDetail* detail = &result->details[j];
550 ASSERT(detail->length > 0 && detail->location >= 0);
551 if (paragraph.checkingRangeMatches(result->location + detail->location, detail->length)) {
554 for (unsigned k = 0; k < detail->guesses.size(); k++)
555 guesses.append(detail->guesses[k]);
556 m_client->updateSpellingUIWithGrammarString(badGrammarPhrase, *detail);