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

Unified Diff: Source/core/events/FocusEvent.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/FocusEvent.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/FocusEvent.cpp
diff --git a/Source/core/events/FocusEvent.cpp b/Source/core/events/FocusEvent.cpp
index 8bb5d0e8d5d6838e216956975f0e32984603d911..f915794f256e19b2ed706f4e40076142c44e9beb 100644
--- a/Source/core/events/FocusEvent.cpp
+++ b/Source/core/events/FocusEvent.cpp
@@ -58,6 +58,11 @@ FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
m_relatedTarget = initializer.relatedTarget();
}
+PassRefPtrWillBeRawPtr<EventDispatchMediator> FocusEvent::createMediator()
+{
+ return FocusEventDispatchMediator::create(this);
+}
+
DEFINE_TRACE(FocusEvent)
{
visitor->trace(m_relatedTarget);
@@ -80,52 +85,4 @@ bool FocusEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) cons
return EventDispatchMediator::dispatchEvent(dispatcher);
}
-PassRefPtrWillBeRawPtr<BlurEventDispatchMediator> BlurEventDispatchMediator::create(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
-{
- return adoptRefWillBeNoop(new BlurEventDispatchMediator(focusEvent));
-}
-
-BlurEventDispatchMediator::BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
- : EventDispatchMediator(focusEvent)
-{
-}
-
-bool BlurEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relatedTarget());
- return EventDispatchMediator::dispatchEvent(dispatcher);
-}
-
-PassRefPtrWillBeRawPtr<FocusInEventDispatchMediator> FocusInEventDispatchMediator::create(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
-{
- return adoptRefWillBeNoop(new FocusInEventDispatchMediator(focusEvent));
-}
-
-FocusInEventDispatchMediator::FocusInEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
- : EventDispatchMediator(focusEvent)
-{
-}
-
-bool FocusInEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relatedTarget());
- return EventDispatchMediator::dispatchEvent(dispatcher);
-}
-
-PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> FocusOutEventDispatchMediator::create(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
-{
- return adoptRefWillBeNoop(new FocusOutEventDispatchMediator(focusEvent));
-}
-
-FocusOutEventDispatchMediator::FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent> focusEvent)
- : EventDispatchMediator(focusEvent)
-{
-}
-
-bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relatedTarget());
- return EventDispatchMediator::dispatchEvent(dispatcher);
-}
-
} // namespace blink
« no previous file with comments | « Source/core/events/FocusEvent.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698