Index: Source/core/events/ErrorEvent.h |
diff --git a/Source/core/events/ErrorEvent.h b/Source/core/events/ErrorEvent.h |
index f29df319b9c7da65a57c72271b4621993ffeff1f..1d4bb5e19fba3a32a128e72f6a42befa7d391f20 100644 |
--- a/Source/core/events/ErrorEvent.h |
+++ b/Source/core/events/ErrorEvent.h |
@@ -49,21 +49,21 @@ struct ErrorEventInit : public EventInit { |
class ErrorEvent FINAL : public Event { |
public: |
- static PassRefPtr<ErrorEvent> create() |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> create() |
{ |
- return adoptRef(new ErrorEvent); |
+ return adoptRefWillBeRefCountedGarbageCollected(new ErrorEvent); |
} |
- static PassRefPtr<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, DOMWrapperWorld* world) |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, DOMWrapperWorld* world) |
{ |
- return adoptRef(new ErrorEvent(message, fileName, lineNumber, columnNumber, world)); |
+ return adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(new ErrorEvent(type, initializer)); |
} |
- static PassRefPtr<ErrorEvent> createSanitizedError(DOMWrapperWorld* world) |
+ static PassRefPtrWillBeRawPtr<ErrorEvent> createSanitizedError(DOMWrapperWorld* world) |
{ |
- return adoptRef(new ErrorEvent("Script error.", String(), 0, 0, world)); |
+ return adoptRefWillBeRefCountedGarbageCollected(new ErrorEvent("Script error.", String(), 0, 0, world)); |
} |
virtual ~ErrorEvent(); |