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

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: Fix typo 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
Index: Source/core/events/TreeScopeEventContext.h
diff --git a/Source/core/events/TreeScopeEventContext.h b/Source/core/events/TreeScopeEventContext.h
index 3dd71a7848c8ef5c7d9b07430393269d2d6c8c65..33a294b9f2fc5cb495366fe4f23fc9ab3d0ca595 100644
--- a/Source/core/events/TreeScopeEventContext.h
+++ b/Source/core/events/TreeScopeEventContext.h
@@ -28,7 +28,7 @@
#define TreeScopeEventContext_h
#include "core/dom/Node.h"
-#include "core/dom/NodeList.h"
+#include "core/dom/StaticNodeList.h"
#include "core/dom/TreeScope.h"
#include "core/events/EventTarget.h"
#include "wtf/PassRefPtr.h"
@@ -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;

Powered by Google App Engine
This is Rietveld 408576698