Index: third_party/WebKit/Source/core/events/FocusEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/FocusEvent.cpp b/third_party/WebKit/Source/core/events/FocusEvent.cpp |
index 91ca17d885467b885fa47068cf6b537fa0d93d6a..99984e4437eab7ea20f8ed1360845abe12046abc 100644 |
--- a/third_party/WebKit/Source/core/events/FocusEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/FocusEvent.cpp |
@@ -45,7 +45,7 @@ FocusEvent::FocusEvent() |
} |
FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail, EventTarget* relatedTarget, InputDeviceCapabilities* sourceCapabilities) |
- : UIEvent(type, canBubble, cancelable, relatedTarget, view, detail, sourceCapabilities) |
+ : UIEvent(type, canBubble, cancelable, view, detail, sourceCapabilities) |
, m_relatedTarget(relatedTarget) |
{ |
} |
@@ -80,8 +80,7 @@ FocusEventDispatchMediator::FocusEventDispatchMediator(FocusEvent* focusEvent) |
DispatchEventResult FocusEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const |
{ |
- if (event().relatedTargetScoped()) |
- event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relatedTarget()); |
+ event().eventPath().adjustForRelatedTarget(dispatcher.node(), event().relatedTarget()); |
return EventDispatchMediator::dispatchEvent(dispatcher); |
} |