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

Unified Diff: Source/core/dom/EventContext.cpp

Issue 15063004: Make Event.path() return a pre-calculated NodeList rather than calculating it dynamically. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add an include. Created 7 years, 7 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/dom/EventContext.h ('k') | Source/core/dom/EventRetargeter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/EventContext.cpp
diff --git a/Source/core/dom/EventContext.cpp b/Source/core/dom/EventContext.cpp
index 7b8dd56cd504ce2521f350e611f31594d105d028..30a44c5e28b3427669959150e968481ad6a01912 100644
--- a/Source/core/dom/EventContext.cpp
+++ b/Source/core/dom/EventContext.cpp
@@ -32,6 +32,7 @@
#include "core/dom/FocusEvent.h"
#include "core/dom/MouseEvent.h"
#include "core/dom/Node.h"
+#include "core/dom/StaticNodeList.h"
#include "core/dom/TouchEvent.h"
#include "core/dom/TouchList.h"
#include "core/page/DOMWindow.h"
@@ -51,6 +52,11 @@ EventContext::~EventContext()
{
}
+void EventContext::adoptEventPath(Vector<RefPtr<Node> >& nodes)
+{
+ m_eventPath = StaticNodeList::adopt(nodes);
+}
+
void EventContext::handleLocalEvents(Event* event) const
{
event->setTarget(m_target.get());
« no previous file with comments | « Source/core/dom/EventContext.h ('k') | Source/core/dom/EventRetargeter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698