Index: Source/core/events/FocusEvent.h |
diff --git a/Source/core/events/FocusEvent.h b/Source/core/events/FocusEvent.h |
index fd66f186ec78a96005a68975858db3f7a94e0436..dd0ffe923383160a28a4311a73d12a25abcc5b7e 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 adoptRefCountedWillBeRefCountedGarbageCollected(new FocusEvent); |
} |
- static PassRefPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail, EventTarget* relatedTarget) |
+ static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, int detail, EventTarget* relatedTarget) |
{ |
- return adoptRef(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(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 adoptRefCountedWillBeRefCountedGarbageCollected(new FocusEvent(type, initializer)); |
} |
EventTarget* relatedTarget() const { return m_relatedTarget.get(); } |