| Index: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp
|
| index 719b31ae545f90102418a2dc5782e7bd34da70b9..a992fd284584bfb214849d37cbd1ac5cb9aa8a48 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp
|
| @@ -95,21 +95,6 @@ static void findMisspellings(TextCheckerClient& client, const UChar* text, int s
|
| }
|
| }
|
|
|
| -// TODO(yosin): We should move |expandRangeToSentenceBoundary()| to
|
| -// "SpellChcker.cpp" as static function, since there is only one call site in
|
| -// |SpellChecker::chunkAndMarkAllMisspellingsAndBadGrammar()|.
|
| -EphemeralRange expandRangeToSentenceBoundary(const EphemeralRange& range)
|
| -{
|
| - ASSERT(range.isNotNull());
|
| - const VisiblePosition& visibleStart = createVisiblePosition(range.startPosition());
|
| - ASSERT(visibleStart.isNotNull());
|
| - const Position& sentenceStart = startOfSentence(visibleStart).deepEquivalent();
|
| - const VisiblePosition& visibleEnd = createVisiblePosition(range.endPosition());
|
| - ASSERT(visibleEnd.isNotNull());
|
| - const Position& sentenceEnd = endOfSentence(visibleEnd).deepEquivalent();
|
| - return EphemeralRange(sentenceStart.isNull() ? range.startPosition() : sentenceStart, sentenceEnd.isNull() ? range.endPosition() : sentenceEnd);
|
| -}
|
| -
|
| static EphemeralRange expandToParagraphBoundary(const EphemeralRange& range)
|
| {
|
| return EphemeralRange(startOfParagraph(createVisiblePosition(range.startPosition())).deepEquivalent(), endOfParagraph(createVisiblePosition(range.endPosition())).deepEquivalent());
|
|
|