| Index: views/controls/textfield/textfield.h
|
| diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
|
| index 90c8139e4b00f3abcbe8e121a8b226b039987e4a..690e825aa20b2c1e731ee74478780b2e653d29f1 100644
|
| --- a/views/controls/textfield/textfield.h
|
| +++ b/views/controls/textfield/textfield.h
|
| @@ -69,9 +69,9 @@ class TextRange {
|
| // Returns the max of selected range.
|
| size_t GetMax() const;
|
|
|
| - // Returns true if |range| has same start, end position.
|
| - bool Equals(const TextRange& range) const {
|
| - return start_ == range.start_ && end_ == range.end_;
|
| + // Returns true if the the selection range is same ignoring the direction.
|
| + bool EqualsIgnoringDirection(const TextRange& range) const {
|
| + return GetMin() == range.GetMin() && GetMax() == range.GetMax();
|
| }
|
|
|
| // Set the range with |start| and |end|.
|
|
|