Index: Source/core/editing/PlainTextRange.cpp |
diff --git a/Source/core/editing/PlainTextRange.cpp b/Source/core/editing/PlainTextRange.cpp |
index 986799b8d47d5d01c8aacb92d14991c471168388..736e500df8fd9b0c5f671580b309f27b49798fcd 100644 |
--- a/Source/core/editing/PlainTextRange.cpp |
+++ b/Source/core/editing/PlainTextRange.cpp |
@@ -85,11 +85,8 @@ PassRefPtrWillBeRawPtr<Range> PlainTextRange::createRangeFor(const ContainerNode |
// FIXME: the atEnd() check shouldn't be necessary, workaround for <http://bugs.webkit.org/show_bug.cgi?id=6289>. |
if (!start() && !length() && it.atEnd()) { |
- textRunRange = it.range(); |
- |
- resultRange->setStart(textRunRange->startContainer(), 0, ASSERT_NO_EXCEPTION); |
- resultRange->setEnd(textRunRange->startContainer(), 0, ASSERT_NO_EXCEPTION); |
- |
+ resultRange->setStart(it.startContainer(), 0, ASSERT_NO_EXCEPTION); |
+ resultRange->setEnd(it.startContainer(), 0, ASSERT_NO_EXCEPTION); |
return resultRange.release(); |
} |