| Index: third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp b/third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp
|
| index be3aa68e1c81eb1b2fbf8b213ba43ab9999d977e..6f88d569750ec58d1995028f74b1dbc5177b4b73 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp
|
| @@ -472,7 +472,7 @@ bool LayoutFrameSet::userResize(MouseEvent* evt)
|
| if (!m_isResizing) {
|
| if (needsLayout())
|
| return false;
|
| - if (evt->type() == EventTypeNames::mousedown && evt->button() == LeftButton) {
|
| + if (evt->type() == EventTypeNames::mousedown && evt->button() == static_cast<short>(WebPointerProperties::Button::Left)) {
|
| FloatPoint localPos = absoluteToLocal(FloatPoint(evt->absoluteLocation()), UseTransforms);
|
| startResizing(m_cols, localPos.x());
|
| startResizing(m_rows, localPos.y());
|
| @@ -482,11 +482,11 @@ bool LayoutFrameSet::userResize(MouseEvent* evt)
|
| }
|
| }
|
| } else {
|
| - if (evt->type() == EventTypeNames::mousemove || (evt->type() == EventTypeNames::mouseup && evt->button() == LeftButton)) {
|
| + if (evt->type() == EventTypeNames::mousemove || (evt->type() == EventTypeNames::mouseup && evt->button() == static_cast<short>(WebPointerProperties::Button::Left))) {
|
| FloatPoint localPos = absoluteToLocal(FloatPoint(evt->absoluteLocation()), UseTransforms);
|
| continueResizing(m_cols, localPos.x());
|
| continueResizing(m_rows, localPos.y());
|
| - if (evt->type() == EventTypeNames::mouseup && evt->button() == LeftButton) {
|
| + if (evt->type() == EventTypeNames::mouseup && evt->button() == static_cast<short>(WebPointerProperties::Button::Left)) {
|
| setIsResizing(false);
|
| return true;
|
| }
|
|
|