Index: Source/core/events/Event.h |
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h |
index d63cea615a7019095c310d16f23a3e9cbbb86fc6..353146ea0f59a6b5080e1a2cf7d3647c544a7d06 100644 |
--- a/Source/core/events/Event.h |
+++ b/Source/core/events/Event.h |
@@ -72,17 +72,17 @@ public: |
CHANGE = 32768 |
}; |
- static PassRefPtr<Event> create() |
+ static PassRefPtrWillBeRawPtr<Event> create() |
{ |
- return adoptRef(new Event); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new Event); |
} |
// A factory for a simple event. The event doesn't bubble, and isn't |
// cancelable. |
// http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#fire-a-simple-event |
- static PassRefPtr<Event> create(const AtomicString& type) |
+ static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type) |
{ |
- return adoptRef(new Event(type, false, false)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new Event(type, false, false)); |
} |
static PassRefPtr<Event> createCancelable(const AtomicString& type) |
{ |
@@ -97,9 +97,9 @@ public: |
return adoptRef(new Event(type, true, true)); |
} |
- static PassRefPtr<Event> create(const AtomicString& type, const EventInit& initializer) |
+ static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInit& initializer) |
{ |
- return adoptRef(new Event(type, initializer)); |
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new Event(type, initializer)); |
} |
virtual ~Event(); |