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

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: Remove error from test case as it bubbles up and fails test\ 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 0d580acaf0f4d7a35f750165e8818427d550beae..d15ebb262473cb4441d0af1e2d1a1016dcb30faf 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