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

Unified Diff: Source/core/events/ClipboardEvent.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/BeforeUnloadEvent.h ('k') | Source/core/events/CompositionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/ClipboardEvent.h
diff --git a/Source/core/events/ClipboardEvent.h b/Source/core/events/ClipboardEvent.h
index 66ae9c8e773fa96cd58673d4df201df8bfee0ef1..d32db9f02acc17808ed694b469cbd471876a1811 100644
--- a/Source/core/events/ClipboardEvent.h
+++ b/Source/core/events/ClipboardEvent.h
@@ -34,9 +34,9 @@ namespace WebCore {
public:
virtual ~ClipboardEvent();
- static PassRefPtr<ClipboardEvent> create(const AtomicString& type, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<Clipboard> clipboardArg)
+ static PassRefPtrWillBeRawPtr<ClipboardEvent> create(const AtomicString& type, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<Clipboard> clipboardArg)
{
- return adoptRef(new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
+ return adoptRefWillBeRefCountedGarbageCollected(new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
}
Clipboard* clipboard() const { return m_clipboard.get(); }
« no previous file with comments | « Source/core/events/BeforeUnloadEvent.h ('k') | Source/core/events/CompositionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698