| Index: third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| index fd8032bd330b6dacb6b1c0384d60e939ae0bf98c..d05dac2d0005878ceda446a2f871fca6c263b76d 100644
|
| --- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| @@ -630,7 +630,7 @@ SelectionInDOMTree TextControlElement::Selection() const {
|
| for (Node& node : NodeTraversal::DescendantsOf(*inner_text)) {
|
| DCHECK(!node.hasChildren());
|
| DCHECK(node.IsTextNode() || isHTMLBRElement(node));
|
| - int length = node.IsTextNode() ? Position::LastOffsetInNode(&node) : 1;
|
| + int length = node.IsTextNode() ? Position::LastOffsetInNode(node) : 1;
|
|
|
| if (offset <= start && start <= offset + length)
|
| SetContainerAndOffsetForRange(&node, start - offset, start_node, start);
|
|
|