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

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

Issue 182683002: Lazy evaluation of event.path by numbering TreeScopes in DFS order for later O(1) queries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more renaming Created 6 years, 9 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/EventPath.cpp ('k') | Source/core/events/TreeScopeEventContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/NodeEventContext.h
diff --git a/Source/core/events/NodeEventContext.h b/Source/core/events/NodeEventContext.h
index 4a8cf0cecd03014d3458a971a6100019d0a3247b..d01f84974a148b7cdfefcaa9c54ca2043996ef67 100644
--- a/Source/core/events/NodeEventContext.h
+++ b/Source/core/events/NodeEventContext.h
@@ -47,11 +47,11 @@ public:
Node* node() const { return m_node.get(); }
void setTreeScopeEventContext(PassRefPtr<TreeScopeEventContext> prpTreeScopeEventContext) { m_treeScopeEventContext = prpTreeScopeEventContext; }
+ TreeScopeEventContext* treeScopeEventContext() { return m_treeScopeEventContext.get(); }
EventTarget* target() const { return m_treeScopeEventContext->target(); }
EventTarget* relatedTarget() const { return m_treeScopeEventContext->relatedTarget(); }
TouchEventContext* touchEventContext() const { return m_treeScopeEventContext->touchEventContext(); }
- PassRefPtr<NodeList> eventPath() const { return m_treeScopeEventContext->eventPath(); }
bool currentTargetSameAsTarget() const { return m_currentTarget.get() == target(); }
void handleLocalEvents(Event*) const;
« no previous file with comments | « Source/core/events/EventPath.cpp ('k') | Source/core/events/TreeScopeEventContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698