Index: third_party/WebKit/Source/web/DevToolsEmulator.cpp |
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
index 848f4e121489e3eb3daee48891475e134128abbc..3b8be5b1e90f131495e6b8f293b45ca270a49ef3 100644 |
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
@@ -16,7 +16,6 @@ |
#include "web/WebLocalFrameImpl.h" |
#include "web/WebSettingsImpl.h" |
#include "web/WebViewImpl.h" |
-#include "wtf/PtrUtil.h" |
namespace { |
@@ -367,8 +366,8 @@ bool DevToolsEmulator::handleInputEvent(const WebInputEvent& inputEvent) |
PlatformGestureEventBuilder gestureEvent(frameView, static_cast<const WebGestureEvent&>(inputEvent)); |
float pageScaleFactor = page->pageScaleFactor(); |
if (gestureEvent.type() == PlatformEvent::GesturePinchBegin) { |
- m_lastPinchAnchorCss = wrapUnique(new IntPoint(frameView->scrollPosition() + gestureEvent.position())); |
- m_lastPinchAnchorDip = wrapUnique(new IntPoint(gestureEvent.position())); |
+ m_lastPinchAnchorCss = adoptPtr(new IntPoint(frameView->scrollPosition() + gestureEvent.position())); |
+ m_lastPinchAnchorDip = adoptPtr(new IntPoint(gestureEvent.position())); |
m_lastPinchAnchorDip->scale(pageScaleFactor, pageScaleFactor); |
} |
if (gestureEvent.type() == PlatformEvent::GesturePinchUpdate && m_lastPinchAnchorCss) { |