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

Unified Diff: Source/core/events/HashChangeEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
Index: Source/core/events/HashChangeEvent.h
diff --git a/Source/core/events/HashChangeEvent.h b/Source/core/events/HashChangeEvent.h
index 96be059e785119c4e2acea2282662bb90ba6354d..ee7d77da192283fb69e6e6856039e4099686fcb8 100644
--- a/Source/core/events/HashChangeEvent.h
+++ b/Source/core/events/HashChangeEvent.h
@@ -37,19 +37,19 @@ struct HashChangeEventInit : public EventInit {
class HashChangeEvent FINAL : public Event {
public:
- static PassRefPtrWillBeRawPtr<HashChangeEvent> create()
+ static PassRefPtr<HashChangeEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent);
+ return adoptRef(new HashChangeEvent);
}
- static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
+ static PassRefPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
{
- return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent(oldURL, newURL));
+ return adoptRef(new HashChangeEvent(oldURL, newURL));
}
- static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
+ static PassRefPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new HashChangeEvent(type, initializer));
+ return adoptRef(new HashChangeEvent(type, initializer));
}
void initHashChangeEvent(const AtomicString& eventType, bool canBubble, bool cancelable, const String& oldURL, const String& newURL)

Powered by Google App Engine
This is Rietveld 408576698