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

Unified Diff: Source/core/events/OverflowEvent.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/OverflowEvent.h
diff --git a/Source/core/events/OverflowEvent.h b/Source/core/events/OverflowEvent.h
index 2a20a8d53a6aff13f6aa5c6c333964677862e74e..f3b8dd0b396a489f35e345f86eaa49cd09bc0d0c 100644
--- a/Source/core/events/OverflowEvent.h
+++ b/Source/core/events/OverflowEvent.h
@@ -46,17 +46,17 @@ public:
BOTH = 2
};
- static PassRefPtr<OverflowEvent> create()
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create()
{
- return adoptRef(new OverflowEvent);
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new OverflowEvent);
}
- static PassRefPtr<OverflowEvent> create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
{
- return adoptRef(new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
}
- static PassRefPtr<OverflowEvent> create(const AtomicString& type, const OverflowEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create(const AtomicString& type, const OverflowEventInit& initializer)
{
- return adoptRef(new OverflowEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new OverflowEvent(type, initializer));
}
unsigned short orient() const { return m_orient; }

Powered by Google App Engine
This is Rietveld 408576698