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

Unified Diff: Source/core/events/EventPath.cpp

Issue 125593005: Rename EventContext to NodeEventContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 11 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.h ('k') | Source/core/events/WindowEventContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventPath.cpp
diff --git a/Source/core/events/EventPath.cpp b/Source/core/events/EventPath.cpp
index c8fd95b090dae561a7349d2140e0025b42af8e63..4a205539ea47fe8e4293e889168a24dc147cc62d 100644
--- a/Source/core/events/EventPath.cpp
+++ b/Source/core/events/EventPath.cpp
@@ -125,26 +125,26 @@ void EventPath::resetWith(Node* node)
{
ASSERT(node);
m_node = node;
- m_eventContexts.clear();
+ m_nodeEventContexts.clear();
m_treeScopeEventContexts.clear();
calculatePath();
calculateAdjustedTargets();
calculateAdjustedEventPath();
}
-void EventPath::addEventContext(Node* node)
+void EventPath::addNodeEventContext(Node* node)
{
- m_eventContexts.append(EventContext(node, eventTargetRespectingTargetRules(node)));
+ m_nodeEventContexts.append(NodeEventContext(node, eventTargetRespectingTargetRules(node)));
}
void EventPath::calculatePath()
{
ASSERT(m_node);
- ASSERT(m_eventContexts.isEmpty());
+ ASSERT(m_nodeEventContexts.isEmpty());
m_node->document().updateDistributionForNodeIfNeeded(const_cast<Node*>(m_node));
Node* current = m_node;
- addEventContext(current);
+ addNodeEventContext(current);
if (!m_node->inDocument())
return;
while (current) {
@@ -159,20 +159,20 @@ void EventPath::calculatePath()
ShadowRoot* containingShadowRoot = insertionPoint->containingShadowRoot();
ASSERT(containingShadowRoot);
if (!containingShadowRoot->isOldest())
- addEventContext(containingShadowRoot->olderShadowRoot());
+ addNodeEventContext(containingShadowRoot->olderShadowRoot());
}
- addEventContext(insertionPoint);
+ addNodeEventContext(insertionPoint);
}
current = insertionPoints.last();
continue;
}
if (current->isShadowRoot()) {
current = current->shadowHost();
- addEventContext(current);
+ addNodeEventContext(current);
} else {
current = current->parentNode();
if (current)
- addEventContext(current);
+ addNodeEventContext(current);
}
}
}
« no previous file with comments | « Source/core/events/EventPath.h ('k') | Source/core/events/WindowEventContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698