Index: Source/core/html/HTMLTextFormControlElement.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp |
index 916142fb8104317dde9c0ad81fbbf9b799dc550a..abd7c658233bce59cbc6fa763702b54582425d86 100644 |
--- a/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -443,7 +443,7 @@ PassRefPtr<Range> HTMLTextFormControlElement::selection() const |
for (Node* node = innerText->firstChild(); node; node = NodeTraversal::next(*node, innerText)) { |
ASSERT(!node->firstChild()); |
ASSERT(node->isTextNode() || node->hasTagName(brTag)); |
- int length = node->isTextNode() ? lastOffsetInNode(node) : 1; |
+ int length = node->isTextNode() ? lastOffsetInNode(*node) : 1; |
if (offset <= start && start <= offset + length) |
setContainerAndOffsetForRange(node, start - offset, startNode, start); |