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

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, 10 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
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)
{

Powered by Google App Engine
This is Rietveld 408576698