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

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

Issue 1586563005: Add Event.scoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/events/EventPath.cpp
diff --git a/third_party/WebKit/Source/core/events/EventPath.cpp b/third_party/WebKit/Source/core/events/EventPath.cpp
index b958b89089ed270a78e7d1c8bc5464aa4ad8c40b..16743c4b7ae288cc271dac1cec1fb9409e179ba5 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -54,15 +54,7 @@ static inline bool shouldStopAtShadowRoot(Event& event, ShadowRoot& shadowRoot,
// See https://bugs.webkit.org/show_bug.cgi?id=52195 for details.
const AtomicString eventType = event.type();
return target.toNode() && target.toNode()->shadowHost() == shadowRoot.host()
- && (eventType == EventTypeNames::abort
- || eventType == EventTypeNames::change
- || eventType == EventTypeNames::error
- || eventType == EventTypeNames::load
- || eventType == EventTypeNames::reset
- || eventType == EventTypeNames::resize
- || eventType == EventTypeNames::scroll
- || eventType == EventTypeNames::select
- || eventType == EventTypeNames::selectstart);
+ && event.scoped();
}
EventPath::EventPath(Node& node, Event* event)

Powered by Google App Engine
This is Rietveld 408576698