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

Unified Diff: Source/core/events/CompositionEvent.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/ClipboardEvent.h ('k') | Source/core/events/CustomEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/CompositionEvent.h
diff --git a/Source/core/events/CompositionEvent.h b/Source/core/events/CompositionEvent.h
index 6b5245324f28781a3cf0ca3ffdd666a78df08f7b..f24500c1e71b19d9e9e01b38b4e9f36f71f3ff18 100644
--- a/Source/core/events/CompositionEvent.h
+++ b/Source/core/events/CompositionEvent.h
@@ -40,19 +40,19 @@ struct CompositionEventInit : UIEventInit {
class CompositionEvent FINAL : public UIEvent {
public:
- static PassRefPtr<CompositionEvent> create()
+ static PassRefPtrWillBeRawPtr<CompositionEvent> create()
{
- return adoptRef(new CompositionEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new CompositionEvent);
}
- static PassRefPtr<CompositionEvent> create(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view, const String& data, const Vector<CompositionUnderline>& underlines)
+ static PassRefPtrWillBeRawPtr<CompositionEvent> create(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view, const String& data, const Vector<CompositionUnderline>& underlines)
{
- return adoptRef(new CompositionEvent(type, view, data, underlines));
+ return adoptRefWillBeRefCountedGarbageCollected(new CompositionEvent(type, view, data, underlines));
}
- static PassRefPtr<CompositionEvent> create(const AtomicString& type, const CompositionEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<CompositionEvent> create(const AtomicString& type, const CompositionEventInit& initializer)
{
- return adoptRef(new CompositionEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new CompositionEvent(type, initializer));
}
virtual ~CompositionEvent();
« no previous file with comments | « Source/core/events/ClipboardEvent.h ('k') | Source/core/events/CustomEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698