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

Unified Diff: Source/core/events/CustomEvent.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/CustomEvent.h
diff --git a/Source/core/events/CustomEvent.h b/Source/core/events/CustomEvent.h
index a2ae1953374c9764a629955a0ba30a1c7fe97824..e4165837848a424e80e76e0114f8a2c7bdcbbd83 100644
--- a/Source/core/events/CustomEvent.h
+++ b/Source/core/events/CustomEvent.h
@@ -38,14 +38,14 @@ class CustomEvent FINAL : public Event {
public:
virtual ~CustomEvent();
- static PassRefPtr<CustomEvent> create()
+ static PassRefPtrWillBeRawPtr<CustomEvent> create()
{
- return adoptRef(new CustomEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new CustomEvent);
}
- static PassRefPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer)
{
- return adoptRef(new CustomEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new CustomEvent(type, initializer));
}
void initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue>);

Powered by Google App Engine
This is Rietveld 408576698