| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 85c318a03008ae83a4b8f43515478ff3866f0e4a..e1cc9d40294a54f88c6a5e8302f1dba178566694 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -1868,7 +1868,8 @@ void Textfield::UpdateContextMenu() {
|
| void Textfield::TrackMouseClicks(const ui::MouseEvent& event) {
|
| if (event.IsOnlyLeftMouseButton()) {
|
| base::TimeDelta time_delta = event.time_stamp() - last_click_time_;
|
| - if (time_delta.InMilliseconds() <= GetDoubleClickInterval() &&
|
| + if (!last_click_time_.is_null() &&
|
| + time_delta.InMilliseconds() <= GetDoubleClickInterval() &&
|
| !ExceededDragThreshold(event.location() - last_click_location_)) {
|
| // Upon clicking after a triple click, the count should go back to double
|
| // click and alternate between double and triple. This assignment maps
|
|
|