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

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: Modify layout test results 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 54175abd8187e80108dcf4befd82cc5ff9af9db8..a1e9bf10d403d29f5e42967f006ea489f3d70afb 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -55,15 +55,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