| Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| index 6e6be67b75aafd82acf632d13e390460d38d2ae0..4bf9cac7fcf293dac2456e758cd57b9a0c79ad6f 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
|
| @@ -64,7 +64,7 @@ private:
|
|
|
| void HTMLAnchorElement::NavigationHintSender::handleEvent(Event* event)
|
| {
|
| - if (event->type() == EventTypeNames::mousedown && event->isMouseEvent() && toMouseEvent(event)->button() == LeftButton)
|
| + if (event->type() == EventTypeNames::mousedown && event->isMouseEvent() && toMouseEvent(event)->button() == static_cast<short>(WebPointerProperties::Button::Left))
|
| maybeSendNavigationHint(WebNavigationHintType::LinkMouseDown);
|
| else if (event->type() == EventTypeNames::gesturetapunconfirmed)
|
| maybeSendNavigationHint(WebNavigationHintType::LinkTapUnconfirmed);
|
| @@ -455,7 +455,7 @@ bool isEnterKeyKeydownEvent(Event* event)
|
| bool isLinkClick(Event* event)
|
| {
|
| // Allow detail <= 1 so that synthetic clicks work. They may have detail == 0.
|
| - return event->type() == EventTypeNames::click && (!event->isMouseEvent() || (toMouseEvent(event)->button() != RightButton && toMouseEvent(event)->detail() <= 1));
|
| + return event->type() == EventTypeNames::click && (!event->isMouseEvent() || (toMouseEvent(event)->button() != static_cast<short>(WebPointerProperties::Button::Right) && toMouseEvent(event)->detail() <= 1));
|
| }
|
|
|
| bool HTMLAnchorElement::willRespondToMouseClickEvents()
|
|
|