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

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, 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/ClipboardEvent.h
diff --git a/Source/core/events/ClipboardEvent.h b/Source/core/events/ClipboardEvent.h
index 66ae9c8e773fa96cd58673d4df201df8bfee0ef1..ef48ed92061ce9c47209db94c583be8f2f9e41a0 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 adoptRefCountedWillBeRefCountedGarbageCollected(new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
}
Clipboard* clipboard() const { return m_clipboard.get(); }

Powered by Google App Engine
This is Rietveld 408576698