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

Unified Diff: Source/core/css/CSSFontFaceLoadEvent.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/css/CSSFontFaceLoadEvent.h
diff --git a/Source/core/css/CSSFontFaceLoadEvent.h b/Source/core/css/CSSFontFaceLoadEvent.h
index 04d51f60e634c0fc92f4ecf65179ad352e5cf3a4..8a6ef1cbea274547832bf147339562e548437cf3 100644
--- a/Source/core/css/CSSFontFaceLoadEvent.h
+++ b/Source/core/css/CSSFontFaceLoadEvent.h
@@ -46,19 +46,19 @@ struct CSSFontFaceLoadEventInit : public EventInit {
class CSSFontFaceLoadEvent FINAL : public Event {
public:
- static PassRefPtr<CSSFontFaceLoadEvent> create()
+ static PassRefPtrWillBeRawPtr<CSSFontFaceLoadEvent> create()
{
- return adoptRef<CSSFontFaceLoadEvent>(new CSSFontFaceLoadEvent());
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFontFaceLoadEvent());
}
- static PassRefPtr<CSSFontFaceLoadEvent> create(const AtomicString& type, const CSSFontFaceLoadEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<CSSFontFaceLoadEvent> create(const AtomicString& type, const CSSFontFaceLoadEventInit& initializer)
{
- return adoptRef<CSSFontFaceLoadEvent>(new CSSFontFaceLoadEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFontFaceLoadEvent(type, initializer));
}
static PassRefPtr<CSSFontFaceLoadEvent> createForFontFaces(const AtomicString& type, const FontFaceArray& fontfaces = FontFaceArray())
{
- return adoptRef<CSSFontFaceLoadEvent>(new CSSFontFaceLoadEvent(type, fontfaces));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFontFaceLoadEvent(type, fontfaces));
}
virtual ~CSSFontFaceLoadEvent();

Powered by Google App Engine
This is Rietveld 408576698