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

Unified Diff: Source/core/events/HashChangeEvent.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/GestureEvent.cpp ('k') | Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/HashChangeEvent.h
diff --git a/Source/core/events/HashChangeEvent.h b/Source/core/events/HashChangeEvent.h
index b1dc2f8da27effd845cf808699b8e5ad99960b50..ea6707178d353c5c880e30a61f6fd7de285d76bd 100644
--- a/Source/core/events/HashChangeEvent.h
+++ b/Source/core/events/HashChangeEvent.h
@@ -36,19 +36,19 @@ struct HashChangeEventInit : public EventInit {
class HashChangeEvent FINAL : public Event {
public:
- static PassRefPtr<HashChangeEvent> create()
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create()
{
- return adoptRef(new HashChangeEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent);
}
- static PassRefPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
{
- return adoptRef(new HashChangeEvent(oldURL, newURL));
+ return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent(oldURL, newURL));
}
- static PassRefPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
{
- return adoptRef(new HashChangeEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent(type, initializer));
}
void initHashChangeEvent(const AtomicString& eventType, bool canBubble, bool cancelable, const String& oldURL, const String& newURL)
« no previous file with comments | « Source/core/events/GestureEvent.cpp ('k') | Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698