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

Unified Diff: third_party/WebKit/Source/core/events/FocusEvent.cpp

Issue 2030513002: Remove Event.relatedTargetScoped and update event path calculation for relatedTarget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 7 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698