Index: Source/modules/websockets/CloseEvent.h |
diff --git a/Source/modules/websockets/CloseEvent.h b/Source/modules/websockets/CloseEvent.h |
index 9457363b9d98fd4f2f06077b9d778fc46159e5e5..80658d403af56eb22e37044b990bcfaa1e25d12b 100644 |
--- a/Source/modules/websockets/CloseEvent.h |
+++ b/Source/modules/websockets/CloseEvent.h |
@@ -49,19 +49,19 @@ struct CloseEventInit : public EventInit { |
class CloseEvent FINAL : public Event { |
public: |
- static PassRefPtr<CloseEvent> create() |
+ static PassRefPtrWillBeRawPtr<CloseEvent> create() |
{ |
- return adoptRef(new CloseEvent()); |
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent()); |
} |
- static PassRefPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason) |
+ static PassRefPtrWillBeRawPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason) |
{ |
- return adoptRef(new CloseEvent(wasClean, code, reason)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(wasClean, code, reason)); |
} |
- static PassRefPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer) |
{ |
- return adoptRef(new CloseEvent(type, initializer)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(type, initializer)); |
} |
bool wasClean() const { return m_wasClean; } |