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

Unified Diff: Source/core/events/PopStateEvent.cpp

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/PopStateEvent.h ('k') | Source/core/events/ProgressEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/PopStateEvent.cpp
diff --git a/Source/core/events/PopStateEvent.cpp b/Source/core/events/PopStateEvent.cpp
index 73cad72be53f4e7c891145696303c4940d71b9b3..91dd5c5e372375bbd22580eb1d23b9d6ef165e7c 100644
--- a/Source/core/events/PopStateEvent.cpp
+++ b/Source/core/events/PopStateEvent.cpp
@@ -59,19 +59,19 @@ PopStateEvent::~PopStateEvent()
{
}
-PassRefPtr<PopStateEvent> PopStateEvent::create()
+PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create()
{
- return adoptRef(new PopStateEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new PopStateEvent);
}
-PassRefPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtrWillBeRawPtr<History> history)
+PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtrWillBeRawPtr<History> history)
{
- return adoptRef(new PopStateEvent(serializedState, history));
+ return adoptRefWillBeRefCountedGarbageCollected(new PopStateEvent(serializedState, history));
}
-PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer)
+PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer)
{
- return adoptRef(new PopStateEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new PopStateEvent(type, initializer));
}
const AtomicString& PopStateEvent::interfaceName() const
« no previous file with comments | « Source/core/events/PopStateEvent.h ('k') | Source/core/events/ProgressEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698