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

Unified Diff: Source/core/html/canvas/WebGLContextEvent.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/html/MediaKeyEvent.h ('k') | Source/core/html/track/TrackEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLContextEvent.h
diff --git a/Source/core/html/canvas/WebGLContextEvent.h b/Source/core/html/canvas/WebGLContextEvent.h
index 4326054855205e77843a8e35640debf07c899bf5..7be6b76598d6d46cd9098cc698d3157a053ce8d4 100644
--- a/Source/core/html/canvas/WebGLContextEvent.h
+++ b/Source/core/html/canvas/WebGLContextEvent.h
@@ -38,17 +38,17 @@ struct WebGLContextEventInit : public EventInit {
class WebGLContextEvent FINAL : public Event {
public:
- static PassRefPtr<WebGLContextEvent> create()
+ static PassRefPtrWillBeRawPtr<WebGLContextEvent> create()
{
- return adoptRef(new WebGLContextEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new WebGLContextEvent);
}
- static PassRefPtr<WebGLContextEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage)
+ static PassRefPtrWillBeRawPtr<WebGLContextEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage)
{
- return adoptRef(new WebGLContextEvent(type, canBubble, cancelable, statusMessage));
+ return adoptRefWillBeRefCountedGarbageCollected(new WebGLContextEvent(type, canBubble, cancelable, statusMessage));
}
- static PassRefPtr<WebGLContextEvent> create(const AtomicString& type, const WebGLContextEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<WebGLContextEvent> create(const AtomicString& type, const WebGLContextEventInit& initializer)
{
- return adoptRef(new WebGLContextEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new WebGLContextEvent(type, initializer));
}
virtual ~WebGLContextEvent();
« no previous file with comments | « Source/core/html/MediaKeyEvent.h ('k') | Source/core/html/track/TrackEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698