Home | History | Annotate | Download | only in editing

Lines Matching refs:resultLocation

2184         int resultLocation = result->location + offsetDueToReplacement;
2186 bool resultEndsAtAmbiguousBoundary = ambiguousBoundaryOffset >= 0 && resultLocation + resultLength == ambiguousBoundaryOffset;
2193 if (shouldMarkSpelling && result->type == TextCheckingTypeSpelling && resultLocation >= spellingParagraph.checkingStart() && resultLocation + resultLength <= spellingRangeEndOffset && !resultEndsAtAmbiguousBoundary) {
2194 ASSERT(resultLength > 0 && resultLocation >= 0);
2195 RefPtr<Range> misspellingRange = spellingParagraph.subrange(resultLocation, resultLength);
2199 } else if (shouldMarkGrammar && result->type == TextCheckingTypeGrammar && grammarParagraph.checkingRangeCovers(resultLocation, resultLength)) {
2200 ASSERT(resultLength > 0 && resultLocation >= 0);
2204 if (grammarParagraph.checkingRangeCovers(resultLocation + detail->location, detail->length)) {
2205 RefPtr<Range> badGrammarRange = grammarParagraph.subrange(resultLocation + detail->location, detail->length);
2209 } else if (resultLocation + resultLength <= spellingRangeEndOffset && resultLocation + resultLength >= spellingParagraph.checkingStart()
2216 ASSERT(resultLength > 0 && resultLocation >= 0);
2218 if (shouldShowCorrectionPanel && (resultLocation + resultLength < spellingRangeEndOffset || result->type != TextCheckingTypeCorrection))
2228 RefPtr<Range> rangeToReplace = spellingParagraph.subrange(resultLocation, resultLength);
2232 if (result->type == TextCheckingTypeLink && selectionOffset > resultLocation + resultLength + 1)
2254 if (resultLocation + resultLength == spellingRangeEndOffset) {
2289 if (resultLocation < selectionOffset) {
2297 m_spellingCorrector->markCorrection(spellingParagraph.subrange(resultLocation, replacementLength), replacedString);