Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Unified Diff: Source/core/events/ErrorEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/Event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/events/CustomEvent.h ('k') | Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698