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

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: skip timeout test 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
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 fc4e6a547b7e3e9c0a8dc9b0b4ae7c88ea0220ff..5e661a6993d2df071da3379668d156110fa54678 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -325,18 +325,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;
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/EventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698