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

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

Issue 1227363006: Virtualize EventDispatchMediator creation and cleanup calling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/events/FocusEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.cpp
diff --git a/Source/core/events/Event.cpp b/Source/core/events/Event.cpp
index 9a777f355c17ce80858f7307e0fd0cdc2df06672..397206955ee51cc1b58b90afd82fecdd231726e3 100644
--- a/Source/core/events/Event.cpp
+++ b/Source/core/events/Event.cpp
@@ -24,6 +24,7 @@
#include "core/events/Event.h"
#include "core/dom/StaticNodeList.h"
+#include "core/events/EventDispatchMediator.h"
#include "core/events/EventTarget.h"
#include "core/frame/OriginsUsingFeatures.h"
#include "core/frame/UseCounter.h"
@@ -237,6 +238,11 @@ WillBeHeapVector<RefPtrWillBeMember<EventTarget>> Event::path(ScriptState* scrip
return WillBeHeapVector<RefPtrWillBeMember<EventTarget>>();
}
+PassRefPtrWillBeRawPtr<EventDispatchMediator> Event::createMediator()
+{
+ return EventDispatchMediator::create(this);
+}
+
EventTarget* Event::currentTarget() const
{
if (!m_currentTarget)
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/events/FocusEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698