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

Unified Diff: Source/core/events/PageTransitionEvent.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/OverflowEvent.h ('k') | Source/core/events/PopStateEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/PageTransitionEvent.h
diff --git a/Source/core/events/PageTransitionEvent.h b/Source/core/events/PageTransitionEvent.h
index f249292a84b8d3a45aec6fc401eb52be2ae164f0..a33262a87ab2b3f5d96e7298dd86949399c859b5 100644
--- a/Source/core/events/PageTransitionEvent.h
+++ b/Source/core/events/PageTransitionEvent.h
@@ -38,17 +38,17 @@ struct PageTransitionEventInit : public EventInit {
class PageTransitionEvent FINAL : public Event {
public:
- static PassRefPtr<PageTransitionEvent> create()
+ static PassRefPtrWillBeRawPtr<PageTransitionEvent> create()
{
- return adoptRef(new PageTransitionEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new PageTransitionEvent);
}
- static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted)
+ static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted)
{
- return adoptRef(new PageTransitionEvent(type, persisted));
+ return adoptRefWillBeRefCountedGarbageCollected(new PageTransitionEvent(type, persisted));
}
- static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer)
{
- return adoptRef(new PageTransitionEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new PageTransitionEvent(type, initializer));
}
virtual ~PageTransitionEvent();
« no previous file with comments | « Source/core/events/OverflowEvent.h ('k') | Source/core/events/PopStateEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698