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

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

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 years, 3 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: third_party/WebKit/Source/core/events/EventPath.cpp
diff --git a/third_party/WebKit/Source/core/events/EventPath.cpp b/third_party/WebKit/Source/core/events/EventPath.cpp
index 67bcb31871732b7e1fc5b34cf7077a71ac6fc35a..5a6d7c309c24ae1b781a2bd6d5a847fb49fd27e7 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -53,11 +53,11 @@ static inline bool shouldStopAtShadowRoot(Event& event, ShadowRoot& shadowRoot,
{
if (shadowRoot.isV1()) {
// In v1, an event is scoped by default unless event.composed flag is set.
- return !event.composed() && target.toNode() && target.toNode()->shadowHost() == shadowRoot.host();
+ return !event.composed() && target.toNode() && target.toNode()->ownerShadowHost() == shadowRoot.host();
}
// Ignores event.composed() for v0.
// Instead, use event.isScopedInV0() for backward compatibility.
- return event.isScopedInV0() && target.toNode() && target.toNode()->shadowHost() == shadowRoot.host();
+ return event.isScopedInV0() && target.toNode() && target.toNode()->ownerShadowHost() == shadowRoot.host();
}
EventPath::EventPath(Node& node, Event* event)
@@ -152,7 +152,7 @@ void EventPath::calculatePath()
if (current->isShadowRoot()) {
if (m_event && shouldStopAtShadowRoot(*m_event, *toShadowRoot(current), *m_node))
break;
- current = current->shadowHost();
+ current = current->ownerShadowHost();
nodesInPath.append(current);
} else {
current = current->parentNode();

Powered by Google App Engine
This is Rietveld 408576698