| Index: third_party/WebKit/Source/web/PopupMenuImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/PopupMenuImpl.cpp b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
|
| index 7b2b88f4b059ea43c4ecfec2b2b5485d281c1ffc..97bf482a6c9ff11ee298c762097a9b012dd0367e 100644
|
| --- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
|
| @@ -446,7 +446,9 @@ void PopupMenuImpl::setValueAndClosePopup(int numValue,
|
| // We dispatch events on the owner element to match the legacy behavior.
|
| // Other browsers dispatch click events before and after showing the popup.
|
| if (m_ownerElement) {
|
| - PlatformMouseEvent event;
|
| + // TODO(dtapuska): Why is this event positionless?
|
| + WebMouseEvent event;
|
| + event.setFrameScale(1);
|
| Element* owner = &ownerElement();
|
| owner->dispatchMouseEvent(event, EventTypeNames::mouseup);
|
| owner->dispatchMouseEvent(event, EventTypeNames::click);
|
|
|