Index: Source/core/events/GestureEvent.cpp |
diff --git a/Source/core/events/GestureEvent.cpp b/Source/core/events/GestureEvent.cpp |
index dbdd6bb2cce2bfee53faf94c010382d650bffe6f..9e0e03777974f480da5baf4fdce036f14ad9c354 100644 |
--- a/Source/core/events/GestureEvent.cpp |
+++ b/Source/core/events/GestureEvent.cpp |
@@ -30,7 +30,7 @@ |
namespace WebCore { |
-PassRefPtr<GestureEvent> GestureEvent::create(PassRefPtrWillBeRawPtr<AbstractView> view, const PlatformGestureEvent& event) |
+PassRefPtrWillBeRawPtr<GestureEvent> GestureEvent::create(PassRefPtrWillBeRawPtr<AbstractView> view, const PlatformGestureEvent& event) |
{ |
AtomicString eventType; |
float deltaX = 0; |
@@ -65,7 +65,7 @@ PassRefPtr<GestureEvent> GestureEvent::create(PassRefPtrWillBeRawPtr<AbstractVie |
default: |
return nullptr; |
} |
- return adoptRef(new GestureEvent(eventType, view, event.globalPosition().x(), event.globalPosition().y(), event.position().x(), event.position().y(), event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), deltaX, deltaY)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new GestureEvent(eventType, view, event.globalPosition().x(), event.globalPosition().y(), event.position().x(), event.position().y(), event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), deltaX, deltaY)); |
} |
const AtomicString& GestureEvent::interfaceName() const |