| Index: Source/modules/gamepad/GamepadEvent.h
|
| diff --git a/Source/modules/gamepad/GamepadEvent.h b/Source/modules/gamepad/GamepadEvent.h
|
| index dcadc573369198169b8f77d2f0028bf28925b036..4f77a1c963b3456e9fc71d0518cdf297a7732ad2 100644
|
| --- a/Source/modules/gamepad/GamepadEvent.h
|
| +++ b/Source/modules/gamepad/GamepadEvent.h
|
| @@ -18,17 +18,17 @@ struct GamepadEventInit : public EventInit {
|
|
|
| class GamepadEvent FINAL : public Event {
|
| public:
|
| - static PassRefPtr<GamepadEvent> create()
|
| + static PassRefPtrWillBeRawPtr<GamepadEvent> create()
|
| {
|
| - return adoptRef(new GamepadEvent);
|
| + return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent);
|
| }
|
| - static PassRefPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
|
| + static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
|
| {
|
| - return adoptRef(new GamepadEvent(type, canBubble, cancelable, gamepad));
|
| + return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent(type, canBubble, cancelable, gamepad));
|
| }
|
| - static PassRefPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer)
|
| + static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer)
|
| {
|
| - return adoptRef(new GamepadEvent(type, initializer));
|
| + return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent(type, initializer));
|
| }
|
| virtual ~GamepadEvent();
|
|
|
|
|