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

Unified Diff: Source/core/events/ProgressEvent.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/PopStateEvent.cpp ('k') | Source/core/events/ResourceProgressEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/ProgressEvent.h
diff --git a/Source/core/events/ProgressEvent.h b/Source/core/events/ProgressEvent.h
index 337a9a89c4d37386ea3ddb2b899abff2b7462f53..a69945d104c5b1ed4a2ea93961f3de0bf76ba00f 100644
--- a/Source/core/events/ProgressEvent.h
+++ b/Source/core/events/ProgressEvent.h
@@ -40,17 +40,17 @@ struct ProgressEventInit : public EventInit {
class ProgressEvent : public Event {
public:
- static PassRefPtr<ProgressEvent> create()
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create()
{
- return adoptRef(new ProgressEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new ProgressEvent);
}
- static PassRefPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
{
- return adoptRef(new ProgressEvent(type, lengthComputable, loaded, total));
+ return adoptRefWillBeRefCountedGarbageCollected(new ProgressEvent(type, lengthComputable, loaded, total));
}
- static PassRefPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
{
- return adoptRef(new ProgressEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new ProgressEvent(type, initializer));
}
bool lengthComputable() const { return m_lengthComputable; }
« no previous file with comments | « Source/core/events/PopStateEvent.cpp ('k') | Source/core/events/ResourceProgressEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698