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

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

Issue 2202173004: make a hole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-xss
Patch Set: Created 4 years, 4 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 | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d9b95f3f7b5f1f27281a8bf7c0b49b5224577155..d7ecb6e92948c64ca8f3900e317059b499200993 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -82,12 +82,6 @@ static inline bool eventPathShouldBeEmptyFor(Node& node, Event* event)
if (node.isPseudoElement() && !node.parentElement())
return true;
- // Do not dispatch non-composed events in SVG use trees.
- if (node.isSVGElement()) {
- if (toSVGElement(node).inUseShadowTree() && event && !event->composed())
- return true;
- }
-
return false;
}
@@ -114,15 +108,6 @@ void EventPath::calculatePath()
HeapVector<Member<Node>, 64> nodesInPath;
Node* current = m_node;
- // Exclude nodes in SVG <use>'s shadow tree from event path.
- // See crbug.com/630870
- while (current->isSVGElement()) {
- SVGUseElement* correspondingUseElement = toSVGElement(current)->correspondingUseElement();
- if (!correspondingUseElement)
- break;
- current = correspondingUseElement;
- }
-
nodesInPath.append(current);
while (current) {
if (m_event && current->keepEventInNode(m_event))
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698