| Index: third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
|
| index 918e4274a34de54e2b71305e0d59e43bb507b1fb..a6c7f4720663ef3ac37d8366fd0d34fe197c9509 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp
|
| @@ -88,7 +88,7 @@ void SpinButtonElement::defaultEventHandler(Event* event)
|
|
|
| MouseEvent* mouseEvent = toMouseEvent(event);
|
| IntPoint local = roundedIntPoint(box->absoluteToLocal(FloatPoint(mouseEvent->absoluteLocation()), UseTransforms));
|
| - if (mouseEvent->type() == EventTypeNames::mousedown && mouseEvent->button() == LeftButton) {
|
| + if (mouseEvent->type() == EventTypeNames::mousedown && mouseEvent->button() == static_cast<short>(WebPointerProperties::Button::Left)) {
|
| if (box->pixelSnappedBorderBoxRect().contains(local)) {
|
| if (m_spinButtonOwner)
|
| m_spinButtonOwner->focusAndSelectSpinButtonOwner();
|
| @@ -105,7 +105,7 @@ void SpinButtonElement::defaultEventHandler(Event* event)
|
| }
|
| event->setDefaultHandled();
|
| }
|
| - } else if (mouseEvent->type() == EventTypeNames::mouseup && mouseEvent->button() == LeftButton) {
|
| + } else if (mouseEvent->type() == EventTypeNames::mouseup && mouseEvent->button() == static_cast<short>(WebPointerProperties::Button::Left)) {
|
| releaseCapture();
|
| } else if (event->type() == EventTypeNames::mousemove) {
|
| if (box->pixelSnappedBorderBoxRect().contains(local)) {
|
|
|