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

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, 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/MutationEvent.h ('k') | Source/core/events/PageTransitionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/OverflowEvent.h
diff --git a/Source/core/events/OverflowEvent.h b/Source/core/events/OverflowEvent.h
index 2a20a8d53a6aff13f6aa5c6c333964677862e74e..cedf0fcfa0748a68fc484f0355bf52c6ad9fa317 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 adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(new OverflowEvent(type, initializer));
}
unsigned short orient() const { return m_orient; }
« no previous file with comments | « Source/core/events/MutationEvent.h ('k') | Source/core/events/PageTransitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698