| 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 5dd854b4cfdf2e2869217331d46baa95a09ccb67..12bb8af943923a7039a1b4be52f10f9f0aafaa82 100644
|
| --- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| @@ -503,7 +503,7 @@ unsigned TextControlElement::ComputeSelectionStart() const {
|
| GetDocument().Lifecycle());
|
| const SelectionInDOMTree& selection =
|
| frame->Selection().GetSelectionInDOMTree();
|
| - if (selection.Granularity() == kCharacterGranularity) {
|
| + if (frame->Selection().Granularity() == kCharacterGranularity) {
|
| return IndexForPosition(InnerEditorElement(),
|
| selection.ComputeStartPosition());
|
| }
|
| @@ -534,7 +534,7 @@ unsigned TextControlElement::ComputeSelectionEnd() const {
|
| GetDocument().Lifecycle());
|
| const SelectionInDOMTree& selection =
|
| frame->Selection().GetSelectionInDOMTree();
|
| - if (selection.Granularity() == kCharacterGranularity) {
|
| + if (frame->Selection().Granularity() == kCharacterGranularity) {
|
| return IndexForPosition(InnerEditorElement(),
|
| selection.ComputeEndPosition());
|
| }
|
|
|