| Index: third_party/WebKit/Source/web/ExternalPopupMenu.cpp
|
| diff --git a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
|
| index b9c93176a14410097fd0380bbb2648934e5fedf8..b3e73d35cf18528aaa512fd49d45b275df46a03b 100644
|
| --- a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
|
| +++ b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
|
| @@ -50,6 +50,7 @@
|
| #include "public/web/WebPopupMenuInfo.h"
|
| #include "web/WebLocalFrameImpl.h"
|
| #include "web/WebViewImpl.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -111,7 +112,7 @@ void ExternalPopupMenu::show()
|
| #if OS(MACOSX)
|
| const WebInputEvent* currentEvent = WebViewImpl::currentInputEvent();
|
| if (currentEvent && currentEvent->type == WebInputEvent::MouseDown) {
|
| - m_syntheticEvent = adoptPtr(new WebMouseEvent);
|
| + m_syntheticEvent = wrapUnique(new WebMouseEvent);
|
| *m_syntheticEvent = *static_cast<const WebMouseEvent*>(currentEvent);
|
| m_syntheticEvent->type = WebInputEvent::MouseUp;
|
| m_dispatchEventTimer.startOneShot(0, BLINK_FROM_HERE);
|
|
|