Index: Source/core/events/ErrorEvent.h |
diff --git a/Source/core/events/ErrorEvent.h b/Source/core/events/ErrorEvent.h |
index cd1be4d864df7952b900225550fe075f60630848..b65988a975f0013bdce07470bc9963d36ccea229 100644 |
--- a/Source/core/events/ErrorEvent.h |
+++ b/Source/core/events/ErrorEvent.h |
@@ -49,17 +49,17 @@ struct ErrorEventInit : public EventInit { |
class ErrorEvent FINAL : public Event { |
public: |
- static PassRefPtr<ErrorEvent> create() |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> create() |
{ |
- return adoptRef(new ErrorEvent); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new ErrorEvent); |
} |
- static PassRefPtr<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, PassRefPtr<DOMWrapperWorld> world) |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, PassRefPtr<DOMWrapperWorld> world) |
{ |
- return adoptRef(new ErrorEvent(message, fileName, lineNumber, columnNumber, world)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new ErrorEvent(message, fileName, lineNumber, columnNumber, world)); |
} |
- static PassRefPtr<ErrorEvent> create(const AtomicString& type, const ErrorEventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> create(const AtomicString& type, const ErrorEventInit& initializer) |
{ |
- return adoptRef(new ErrorEvent(type, initializer)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new ErrorEvent(type, initializer)); |
} |
static PassRefPtr<ErrorEvent> createSanitizedError(PassRefPtr<DOMWrapperWorld> world) |
{ |