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

Unified Diff: Source/core/events/EventListenerMap.h

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/EventListenerMap.h
diff --git a/Source/core/events/EventListenerMap.h b/Source/core/events/EventListenerMap.h
index 78c46dfaa6b8da895344487cfeaa9f453c668b3b..f0500754ffd7452e0221284a89651bc0e6b760c0 100644
--- a/Source/core/events/EventListenerMap.h
+++ b/Source/core/events/EventListenerMap.h
@@ -43,7 +43,7 @@ namespace blink {
class EventTarget;
-typedef Vector<RegisteredEventListener, 1> EventListenerVector;
+typedef WillBeHeapVector<RegisteredEventListener, 1> EventListenerVector;
class CORE_EXPORT EventListenerMap {
WTF_MAKE_NONCOPYABLE(EventListenerMap);
@@ -55,7 +55,7 @@ public:
bool containsCapturing(const AtomicString& eventType) const;
void clear();
- bool add(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture);
+ bool add(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener>, bool useCapture);
bool remove(const AtomicString& eventType, EventListener*, bool useCapture, size_t& indexOfRemovedListener);
EventListenerVector* find(const AtomicString& eventType);
Vector<AtomicString> eventTypes() const;

Powered by Google App Engine
This is Rietveld 408576698