Index: Source/core/events/CustomEvent.h |
diff --git a/Source/core/events/CustomEvent.h b/Source/core/events/CustomEvent.h |
index a2ae1953374c9764a629955a0ba30a1c7fe97824..54b9c0572d7383530e68349d6579d001b8ea9d1d 100644 |
--- a/Source/core/events/CustomEvent.h |
+++ b/Source/core/events/CustomEvent.h |
@@ -38,14 +38,14 @@ class CustomEvent FINAL : public Event { |
public: |
virtual ~CustomEvent(); |
- static PassRefPtr<CustomEvent> create() |
+ static PassRefPtrWillBeRawPtr<CustomEvent> create() |
{ |
- return adoptRef(new CustomEvent); |
+ return adoptRefWillBeRefCountedGarbageCollected(new CustomEvent); |
} |
- static PassRefPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer) |
{ |
- return adoptRef(new CustomEvent(type, initializer)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new CustomEvent(type, initializer)); |
} |
void initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue>); |