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

Unified Diff: Source/core/events/TransitionEvent.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/TouchEvent.h ('k') | Source/core/events/UIEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/TransitionEvent.h
diff --git a/Source/core/events/TransitionEvent.h b/Source/core/events/TransitionEvent.h
index 27d774a71a4a4a5481102960d7ed2b9838e7c28a..0cc81f5a4944bb8241c9c9c1058b13a74f28e37c 100644
--- a/Source/core/events/TransitionEvent.h
+++ b/Source/core/events/TransitionEvent.h
@@ -41,17 +41,17 @@ struct TransitionEventInit : public EventInit {
class TransitionEvent FINAL : public Event {
public:
- static PassRefPtr<TransitionEvent> create()
+ static PassRefPtrWillBeRawPtr<TransitionEvent> create()
{
- return adoptRef(new TransitionEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new TransitionEvent);
}
- static PassRefPtr<TransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
+ static PassRefPtrWillBeRawPtr<TransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
{
- return adoptRef(new TransitionEvent(type, propertyName, elapsedTime, pseudoElement));
+ return adoptRefWillBeRefCountedGarbageCollected(new TransitionEvent(type, propertyName, elapsedTime, pseudoElement));
}
- static PassRefPtr<TransitionEvent> create(const AtomicString& type, const TransitionEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<TransitionEvent> create(const AtomicString& type, const TransitionEventInit& initializer)
{
- return adoptRef(new TransitionEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new TransitionEvent(type, initializer));
}
virtual ~TransitionEvent();
« no previous file with comments | « Source/core/events/TouchEvent.h ('k') | Source/core/events/UIEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698