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) |