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 |