Index: Source/modules/device_orientation/DeviceMotionEvent.h |
diff --git a/Source/modules/device_orientation/DeviceMotionEvent.h b/Source/modules/device_orientation/DeviceMotionEvent.h |
index ce19d5fb6403af6c04cac2b439e34a45fff75700..2f50e9f9635e7b6f585cfd8d7663f2af682f97bf 100644 |
--- a/Source/modules/device_orientation/DeviceMotionEvent.h |
+++ b/Source/modules/device_orientation/DeviceMotionEvent.h |
@@ -38,13 +38,13 @@ class DeviceRotationRate; |
class DeviceMotionEvent FINAL : public Event { |
public: |
virtual ~DeviceMotionEvent(); |
- static PassRefPtr<DeviceMotionEvent> create() |
+ static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create() |
{ |
- return adoptRef(new DeviceMotionEvent); |
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent); |
} |
- static PassRefPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData) |
+ static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData) |
{ |
- return adoptRef(new DeviceMotionEvent(eventType, deviceMotionData)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent(eventType, deviceMotionData)); |
} |
void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*); |