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

Unified Diff: Source/core/events/FocusEvent.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/EventFactory.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/FocusEvent.h
diff --git a/Source/core/events/FocusEvent.h b/Source/core/events/FocusEvent.h
index 90477b28040f1abe73ba2564c1919f536adef71e..dd4b9d13c5756f3b690f7c610c02713e47558e2d 100644
--- a/Source/core/events/FocusEvent.h
+++ b/Source/core/events/FocusEvent.h
@@ -41,19 +41,19 @@ struct FocusEventInit : public UIEventInit {
class FocusEvent FINAL : public UIEvent {
public:
- static PassRefPtr<FocusEvent> create()
+ static PassRefPtrWillBeRawPtr<FocusEvent> create()
{
- return adoptRef(new FocusEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent);
}
- static PassRefPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail, EventTarget* relatedTarget)
+ static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail, EventTarget* relatedTarget)
{
- return adoptRef(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
+ return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
}
- static PassRefPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
{
- return adoptRef(new FocusEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new FocusEvent(type, initializer));
}
EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
« no previous file with comments | « Source/core/events/EventFactory.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698