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

Unified Diff: Source/core/dom/Document.h

Issue 324813002: Convert raw pointer to PassOwnPtr for EventFactoryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix debug build. Created 6 years, 6 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/Init.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 6c62c403b4f4a7f7bd677c12a601663ebb05761b..b20a0fec29fe05acc4cd0cd28ff9f725d91f48ad 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -691,7 +691,7 @@ public:
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>);
EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
- static void registerEventFactory(EventFactoryBase*);
+ static void registerEventFactory(PassOwnPtr<EventFactoryBase>);
static PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, ExceptionState&);
// keep track of what types of event listeners are registered, so we don't
@@ -1187,7 +1187,7 @@ private:
void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
Node* hoverNode() const { return m_hoverNode.get(); }
- typedef HashSet<EventFactoryBase*> EventFactorySet;
+ typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet;
static EventFactorySet& eventFactories();
DocumentLifecycle m_lifecycle;
« no previous file with comments | « Source/core/Init.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698