| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index 46f57714d851fec3a64537ee81f4247643f91028..5bc5f0c0430b88abadca6dcb4d599391da9250e2 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1141,7 +1141,7 @@ EventDispatchHandlingState* HTMLInputElement::preDispatchEventHandler(Event* eve
|
| }
|
| if (event->type() != EventTypeNames::click)
|
| return nullptr;
|
| - if (!event->isMouseEvent() || toMouseEvent(event)->button() != LeftButton)
|
| + if (!event->isMouseEvent() || toMouseEvent(event)->button() != static_cast<short>(WebPointerProperties::Button::Left))
|
| return nullptr;
|
| return m_inputTypeView->willDispatchClick();
|
| }
|
| @@ -1155,7 +1155,7 @@ void HTMLInputElement::postDispatchEventHandler(Event* event, EventDispatchHandl
|
|
|
| void HTMLInputElement::defaultEventHandler(Event* evt)
|
| {
|
| - if (evt->isMouseEvent() && evt->type() == EventTypeNames::click && toMouseEvent(evt)->button() == LeftButton) {
|
| + if (evt->isMouseEvent() && evt->type() == EventTypeNames::click && toMouseEvent(evt)->button() == static_cast<short>(WebPointerProperties::Button::Left)) {
|
| m_inputTypeView->handleClickEvent(toMouseEvent(evt));
|
| if (evt->defaultHandled())
|
| return;
|
|
|