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

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

Issue 2656613007: Event-path fix-up for PointerEvents in shadow dom. (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/NodeEventContext.cpp
diff --git a/third_party/WebKit/Source/core/events/NodeEventContext.cpp b/third_party/WebKit/Source/core/events/NodeEventContext.cpp
index 2b5f6de8add544642b1b14f63d7a15baf4f06149..5b490705e720c96da1535e039cf67eb5e48c20ef 100644
--- a/third_party/WebKit/Source/core/events/NodeEventContext.cpp
+++ b/third_party/WebKit/Source/core/events/NodeEventContext.cpp
@@ -30,6 +30,7 @@
#include "core/events/Event.h"
#include "core/events/FocusEvent.h"
#include "core/events/MouseEvent.h"
+#include "core/events/PointerEvent.h"
#include "core/events/TouchEventContext.h"
namespace blink {
@@ -51,6 +52,8 @@ void NodeEventContext::handleLocalEvents(Event& event) const {
} else if (relatedTarget()) {
if (event.isMouseEvent()) {
toMouseEvent(event).setRelatedTarget(relatedTarget());
+ } else if (event.isPointerEvent()) {
+ toPointerEvent(event).setRelatedTarget(relatedTarget());
} else if (event.isFocusEvent()) {
toFocusEvent(event).setRelatedTarget(relatedTarget());
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698