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(); } |