| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 5d02a29eef8a4e909bef7244b3a3fd83e42f216a..be9a47bc03725741664ddc914c3998c50c743589 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -497,13 +497,13 @@ static EphemeralRange expandRangeToSentenceBoundary(const EphemeralRange& range)
|
| return expandEndToSentenceBoundary(EphemeralRange(sentenceStart.isNull() ? range.startPosition() : sentenceStart, range.endPosition()));
|
| }
|
|
|
| -void SpellChecker::chunkAndMarkAllMisspellingsAndBadGrammar(Node* node)
|
| +void SpellChecker::chunkAndMarkAllMisspellingsAndBadGrammar(Node* node, const EphemeralRange& insertedRange)
|
| {
|
| TRACE_EVENT0("blink", "SpellChecker::chunkAndMarkAllMisspellingsAndBadGrammar");
|
| if (!node)
|
| return;
|
| - RefPtrWillBeRawPtr<Range> rangeToCheck = Range::create(*frame().document(), firstPositionInNode(node), lastPositionInNode(node));
|
| - TextCheckingParagraph textToCheck(rangeToCheck, rangeToCheck);
|
| + EphemeralRange paragraphRange(firstPositionInNode(node), lastPositionInNode(node));
|
| + TextCheckingParagraph textToCheck(insertedRange, paragraphRange);
|
| chunkAndMarkAllMisspellingsAndBadGrammar(resolveTextCheckingTypeMask(TextCheckingTypeSpelling | TextCheckingTypeGrammar), textToCheck);
|
| }
|
|
|
|
|