Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
| index 782242508bc333918c4c1f66b0893a5f1f6eb82a..0f79f46a53408e44cc305bfb3490ded87cab87d3 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp |
| @@ -172,7 +172,7 @@ void HTMLLabelElement::defaultEventHandler(Event* evt) |
| // should pass click event to control element. |
| // Only in case of drag, *neither* we pass the click event, |
| // *nor* we focus the control element. |
| - if (isLabelTextSelected && frame->eventHandler().clickCount() == 1) |
| + if (isLabelTextSelected && toMouseEvent(evt)->detail() == 1) |
|
bokan
2016/09/01 13:50:13
Why did this change?
Navid Zolghadr
2016/09/01 14:30:41
To be able to get rid of clickCount function. Basi
bokan
2016/09/01 16:00:54
Acknowledged.
|
| return; |
| } |
| } |