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

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

Issue 182763002: 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/BeforeLoadEvent.h
diff --git a/Source/core/events/BeforeLoadEvent.h b/Source/core/events/BeforeLoadEvent.h
index f605a7b8cbfbd49cd029ce9fde8af0806b686c36..00cbec95933305112d1fed43e44d40528f827415 100644
--- a/Source/core/events/BeforeLoadEvent.h
+++ b/Source/core/events/BeforeLoadEvent.h
@@ -43,19 +43,19 @@ struct BeforeLoadEventInit : public EventInit {
class BeforeLoadEvent FINAL : public Event {
public:
- static PassRefPtr<BeforeLoadEvent> create()
+ static PassRefPtrWillBeRawPtr<BeforeLoadEvent> create()
{
- return adoptRef(new BeforeLoadEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new BeforeLoadEvent);
}
- static PassRefPtr<BeforeLoadEvent> create(const String& url)
+ static PassRefPtrWillBeRawPtr<BeforeLoadEvent> create(const String& url)
{
- return adoptRef(new BeforeLoadEvent(url));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new BeforeLoadEvent(url));
}
- static PassRefPtr<BeforeLoadEvent> create(const AtomicString& type, const BeforeLoadEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<BeforeLoadEvent> create(const AtomicString& type, const BeforeLoadEventInit& initializer)
{
- return adoptRef(new BeforeLoadEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new BeforeLoadEvent(type, initializer));
}
const String& url() const { return m_url; }

Powered by Google App Engine
This is Rietveld 408576698