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

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

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/events/NodeEventContext.h ('k') | Source/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/TreeScopeEventContext.h
diff --git a/Source/core/events/TreeScopeEventContext.h b/Source/core/events/TreeScopeEventContext.h
index 3dd71a7848c8ef5c7d9b07430393269d2d6c8c65..141dff947571901726a053df2c798328d2591873 100644
--- a/Source/core/events/TreeScopeEventContext.h
+++ b/Source/core/events/TreeScopeEventContext.h
@@ -28,7 +28,6 @@
#define TreeScopeEventContext_h
#include "core/dom/Node.h"
-#include "core/dom/NodeList.h"
#include "core/dom/TreeScope.h"
#include "core/events/EventTarget.h"
#include "wtf/PassRefPtr.h"
@@ -40,6 +39,7 @@ namespace WebCore {
class EventPath;
class EventTarget;
class Node;
+class StaticNodeList;
class TouchEventContext;
class TreeScope;
@@ -60,7 +60,7 @@ public:
TouchEventContext* touchEventContext() const { return m_touchEventContext.get(); }
TouchEventContext* ensureTouchEventContext();
- PassRefPtrWillBeRawPtr<NodeList> ensureEventPath(EventPath&);
+ PassRefPtrWillBeRawPtr<StaticNodeList> ensureEventPath(EventPath&);
bool isInclusiveAncestorOf(const TreeScopeEventContext&);
void addChild(TreeScopeEventContext& child) { m_children.append(&child); }
@@ -79,7 +79,7 @@ private:
RawPtrWillBeMember<TreeScope> m_treeScope;
RefPtrWillBeMember<EventTarget> m_target;
RefPtrWillBeMember<EventTarget> m_relatedTarget;
- RefPtrWillBeMember<NodeList> m_eventPath;
+ RefPtrWillBeMember<StaticNodeList> m_eventPath;
RefPtrWillBeMember<TouchEventContext> m_touchEventContext;
WillBeHeapVector<RawPtrWillBeMember<TreeScopeEventContext> > m_children;
« no previous file with comments | « Source/core/events/NodeEventContext.h ('k') | Source/core/events/TreeScopeEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698