| 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..3041ccaed783a658e2afc1cc051fb1016394f050 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)->clickCount() == 1)
|
| return;
|
| }
|
| }
|
|
|