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

Unified Diff: Source/core/events/WebKitAnimationEvent.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/WebKitAnimationEvent.h
diff --git a/Source/core/events/WebKitAnimationEvent.h b/Source/core/events/WebKitAnimationEvent.h
index 0c4549ab289bc5cf2e25d076b357a0387cc97e55..598e1e482d308a57eb02182bf91a7b8d6953ef3a 100644
--- a/Source/core/events/WebKitAnimationEvent.h
+++ b/Source/core/events/WebKitAnimationEvent.h
@@ -42,17 +42,17 @@ struct WebKitAnimationEventInit : public EventInit {
class WebKitAnimationEvent FINAL : public Event {
public:
- static PassRefPtr<WebKitAnimationEvent> create()
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create()
{
- return adoptRef(new WebKitAnimationEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitAnimationEvent);
}
- static PassRefPtr<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
{
- return adoptRef(new WebKitAnimationEvent(type, animationName, elapsedTime));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitAnimationEvent(type, animationName, elapsedTime));
}
- static PassRefPtr<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
{
- return adoptRef(new WebKitAnimationEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitAnimationEvent(type, initializer));
}
virtual ~WebKitAnimationEvent();

Powered by Google App Engine
This is Rietveld 408576698