| 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 a70ced7f90d83addaaf62d0ac36d22022a715cfb..71f4a9b9875c9e79e5d704c481f5cc63629c7c75 100644
|
| --- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| @@ -369,7 +369,7 @@ unsigned TextControlElement::IndexForPosition(HTMLElement* inner_editor,
|
| return 0;
|
|
|
| unsigned index = 0;
|
| - Node* start_node = passed_position.ComputeNodeBeforePosition();
|
| + const Node* start_node = passed_position.ComputeNodeBeforePosition();
|
| if (!start_node)
|
| start_node = passed_position.ComputeContainerNode();
|
| if (start_node == inner_editor && passed_position.IsAfterAnchor())
|
| @@ -377,7 +377,7 @@ unsigned TextControlElement::IndexForPosition(HTMLElement* inner_editor,
|
| DCHECK(start_node);
|
| DCHECK(inner_editor->contains(start_node));
|
|
|
| - for (Node* node = start_node; node;
|
| + for (const Node* node = start_node; node;
|
| node = NodeTraversal::Previous(*node, inner_editor)) {
|
| if (node->IsTextNode()) {
|
| int length = ToText(*node).length();
|
|
|