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

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

Issue 257033002: Do not implement EventTarget on SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix TestExpectations Created 6 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
Index: Source/core/events/EventPath.cpp
diff --git a/Source/core/events/EventPath.cpp b/Source/core/events/EventPath.cpp
index b9578b1f20984c619bd3a8c6cf352138dba24b45..8b6f74e9d73118122461f17cba78491b5ebafcb0 100644
--- a/Source/core/events/EventPath.cpp
+++ b/Source/core/events/EventPath.cpp
@@ -39,7 +39,6 @@
#include "core/events/MouseEvent.h"
#include "core/events/TouchEvent.h"
#include "core/events/TouchEventContext.h"
-#include "core/svg/SVGElementInstance.h"
#include "core/svg/SVGUseElement.h"
namespace WebCore {
@@ -59,20 +58,6 @@ EventTarget* EventPath::eventTargetRespectingTargetRules(Node* referenceNode)
if (referenceNode->isPseudoElement())
return referenceNode->parentNode();
- if (!usesDeprecatedSVGUseTreeEventRules(referenceNode))
- return referenceNode;
-
- // Spec: The event handling for the non-exposed tree works as if the referenced element had been textually included
- // as a deeply cloned child of the 'use' element, except that events are dispatched to the SVGElementInstance objects.
- Node& rootNode = referenceNode->treeScope().rootNode();
- Element* shadowHostElement = rootNode.isShadowRoot() ? toShadowRoot(rootNode).host() : 0;
- // At this time, SVG nodes are not supported in non-<use> shadow trees.
- if (!isSVGUseElement(shadowHostElement))
- return referenceNode;
- SVGUseElement& useElement = toSVGUseElement(*shadowHostElement);
- if (SVGElementInstance* instance = useElement.instanceForShadowTreeElement(referenceNode))
- return instance;
-
return referenceNode;
}
« no previous file with comments | « LayoutTests/webexposed/event-target-in-prototype-expected.txt ('k') | Source/core/events/EventTargetFactory.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698