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

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

Issue 2186823002: Do not call an event listener on a cloned node in svg <use>'s UA shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite Created 4 years, 5 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/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 75354650ffca4cc03ee2ca562fd5c8d137d1b14a..5bb40cf6782233afe68430b2b7f2295f399cd779 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -326,18 +326,6 @@ EventDispatchMediator* Event::createMediator()
return EventDispatchMediator::create(this);
}
-EventTarget* Event::currentTarget() const
-{
- if (!m_currentTarget)
- return nullptr;
- Node* node = m_currentTarget->toNode();
- if (node && node->isSVGElement()) {
- if (SVGElement* svgElement = toSVGElement(node)->correspondingElement())
- return svgElement;
- }
- return m_currentTarget.get();
-}
-
double Event::timeStamp(ScriptState* scriptState) const
{
double timeStamp = 0;

Powered by Google App Engine
This is Rietveld 408576698