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

Unified Diff: Source/core/events/UIEvent.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/TransitionEvent.h ('k') | Source/core/events/WebKitAnimationEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/UIEvent.h
diff --git a/Source/core/events/UIEvent.h b/Source/core/events/UIEvent.h
index 6d9a548b36a8780b87c6d4b09276b90259a067ac..2c1519cc4bb33263b2b7e333d1f22c301f7ae1ec 100644
--- a/Source/core/events/UIEvent.h
+++ b/Source/core/events/UIEvent.h
@@ -41,17 +41,17 @@ struct UIEventInit : public EventInit {
class UIEvent : public Event {
public:
- static PassRefPtr<UIEvent> create()
+ static PassRefPtrWillBeRawPtr<UIEvent> create()
{
- return adoptRef(new UIEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new UIEvent);
}
- static PassRefPtr<UIEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail)
+ static PassRefPtrWillBeRawPtr<UIEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail)
{
- return adoptRef(new UIEvent(type, canBubble, cancelable, view, detail));
+ return adoptRefWillBeRefCountedGarbageCollected(new UIEvent(type, canBubble, cancelable, view, detail));
}
- static PassRefPtr<UIEvent> create(const AtomicString& type, const UIEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<UIEvent> create(const AtomicString& type, const UIEventInit& initializer)
{
- return adoptRef(new UIEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new UIEvent(type, initializer));
}
virtual ~UIEvent();
« no previous file with comments | « Source/core/events/TransitionEvent.h ('k') | Source/core/events/WebKitAnimationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698