Chromium Code Reviews| Index: Source/core/editing/spellcheck/TextCheckingHelper.cpp |
| diff --git a/Source/core/editing/spellcheck/TextCheckingHelper.cpp b/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
| index 9abac4c443ccfb672f7aa115bb0c092cefbb4163..2f7297799d2f153b60a27e61b722a6b5e87b27ac 100644 |
| --- a/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
| +++ b/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
| @@ -168,7 +168,7 @@ PassRefPtrWillBeRawPtr<Range> TextCheckingParagraph::subrange(int characterOffse |
| EphemeralRange range = calculateCharacterSubrange(EphemeralRange(paragraphRange().get()), characterOffset, characterCount); |
| if (range.isNull()) |
|
tkent
2015/08/24 09:38:05
We can remove these two lines.
yosin_UTC9
2015/08/24 13:19:22
Done.
|
| return nullptr; |
| - return Range::create(range.document(), range.startPosition(), range.endPosition()); |
| + return createRange(range); |
| } |
| int TextCheckingParagraph::offsetTo(const Position& position, ExceptionState& exceptionState) const |