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

Unified Diff: Source/core/events/Event.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/ErrorEvent.h ('k') | Source/core/events/Event.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.h
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h
index 43baf839cd1254387bc6c5ddbd9eddce7b5567d3..001e298e9171aa6aee7aaf0e3c0053e40a7b0c6a 100644
--- a/Source/core/events/Event.h
+++ b/Source/core/events/Event.h
@@ -74,17 +74,17 @@ public:
CHANGE = 32768
};
- static PassRefPtr<Event> create()
+ static PassRefPtrWillBeRawPtr<Event> create()
{
- return adoptRef(new Event);
+ return adoptRefWillBeRefCountedGarbageCollected(new Event);
}
// A factory for a simple event. The event doesn't bubble, and isn't
// cancelable.
// http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#fire-a-simple-event
- static PassRefPtr<Event> create(const AtomicString& type)
+ static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type)
{
- return adoptRef(new Event(type, false, false));
+ return adoptRefWillBeRefCountedGarbageCollected(new Event(type, false, false));
}
static PassRefPtr<Event> createCancelable(const AtomicString& type)
{
@@ -99,9 +99,9 @@ public:
return adoptRef(new Event(type, true, true));
}
- static PassRefPtr<Event> create(const AtomicString& type, const EventInit& initializer)
+ static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInit& initializer)
{
- return adoptRef(new Event(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new Event(type, initializer));
}
virtual ~Event();
« no previous file with comments | « Source/core/events/ErrorEvent.h ('k') | Source/core/events/Event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698