Index: third_party/WebKit/Source/web/WebNode.cpp |
diff --git a/third_party/WebKit/Source/web/WebNode.cpp b/third_party/WebKit/Source/web/WebNode.cpp |
index d133bbc84e25b783ab3b12ee8ab08103ddcd87cb..60933dfc3e5d55f999bb1e8090c34c458e73dc68 100644 |
--- a/third_party/WebKit/Source/web/WebNode.cpp |
+++ b/third_party/WebKit/Source/web/WebNode.cpp |
@@ -57,6 +57,7 @@ |
#include "web/FrameLoaderClientImpl.h" |
#include "web/WebLocalFrameImpl.h" |
#include "web/WebPluginContainerImpl.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -195,7 +196,7 @@ bool WebNode::isDocumentTypeNode() const |
void WebNode::simulateClick() |
{ |
- m_private->getExecutionContext()->postSuspendableTask(adoptPtr(new NodeDispatchSimulatedClickTask(m_private))); |
+ m_private->getExecutionContext()->postSuspendableTask(wrapUnique(new NodeDispatchSimulatedClickTask(m_private))); |
} |
WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) const |