Index: Source/core/events/WheelEvent.h |
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h |
index 080c256c1e5bde24db6406d5423a9647b111782d..724144eba2967fd3aef8a4d1428da2b549a9b509 100644 |
--- a/Source/core/events/WheelEvent.h |
+++ b/Source/core/events/WheelEvent.h |
@@ -54,22 +54,22 @@ public: |
DOM_DELTA_PAGE |
}; |
- static PassRefPtr<WheelEvent> create() |
+ static PassRefPtrWillBeRawPtr<WheelEvent> create() |
{ |
- return adoptRef(new WheelEvent); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WheelEvent); |
} |
- static PassRefPtr<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer) |
{ |
- return adoptRef(new WheelEvent(type, initializer)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WheelEvent(type, initializer)); |
} |
- static PassRefPtr<WheelEvent> create(const FloatPoint& wheelTicks, |
+ static PassRefPtrWillBeRawPtr<WheelEvent> create(const FloatPoint& wheelTicks, |
const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtr<AbstractView> view, |
const IntPoint& screenLocation, const IntPoint& pageLocation, |
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionInvertedFromDevice) |
{ |
- return adoptRef(new WheelEvent(wheelTicks, rawDelta, deltaMode, view, |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WheelEvent(wheelTicks, rawDelta, deltaMode, view, |
screenLocation, pageLocation, ctrlKey, altKey, shiftKey, metaKey, directionInvertedFromDevice)); |
} |