| Index: Source/core/editing/SpellChecker.cpp
|
| diff --git a/Source/core/editing/SpellChecker.cpp b/Source/core/editing/SpellChecker.cpp
|
| index f99aaf9bf645c0cff89bdb7fca066ac385c3e3db..97f38597a37e6b8b494fb1048dcc92befb41daca 100644
|
| --- a/Source/core/editing/SpellChecker.cpp
|
| +++ b/Source/core/editing/SpellChecker.cpp
|
| @@ -594,7 +594,7 @@ void SpellChecker::markAndReplaceFor(PassRefPtrWillBeRawPtr<SpellCheckRequest> r
|
| Position caretPosition = frame().selection().end();
|
| selectionOffset = paragraph.offsetTo(caretPosition, ASSERT_NO_EXCEPTION);
|
| restoreSelectionAfterChange = true;
|
| - if (selectionOffset > 0 && (static_cast<unsigned>(selectionOffset) > paragraph.text().length() || paragraph.textCharAt(selectionOffset - 1) == newlineCharacter))
|
| + if (selectionOffset > 0 && (static_cast<unsigned>(selectionOffset) > paragraph.text().length() || paragraph.textCharAt(selectionOffset - 1) == characterNewline))
|
| adjustSelectionForParagraphBoundaries = true;
|
| if (selectionOffset > 0 && static_cast<unsigned>(selectionOffset) <= paragraph.text().length() && isAmbiguousBoundaryCharacter(paragraph.textCharAt(selectionOffset - 1)))
|
| ambiguousBoundaryOffset = selectionOffset - 1;
|
|
|